Package io.guise.framework.theme
Class Theme
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Rule>
,Collection<Rule>
,List<Rule>
,RandomAccess
Guise theme specification.
- Author:
- Garret Wilson
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Color
Standard theme color.static final URI
Standard theme cursor.static final URI
Standard theme cursor.static final URI
Standard theme cursor.static final URI
Standard theme cursor.static final URI
Standard theme cursor.static final URI
Standard theme cursor.static final URI
Standard theme cursor.static final URI
Standard theme cursor.static final URI
Standard theme cursor.static final URI
Standard theme cursor.static final URI
Standard theme cursor.static final URI
Standard theme cursor.static final URI
Standard theme cursor.static final URI
Standard theme cursor.static final URI
Standard theme cursor.static final URI
Standard theme cursor.static final String
The extension for Guise theme resource names.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme glyph icon.static final URI
Standard theme icon.static final URI
Standard theme icon.static final URI
Standard theme icon.static final URI
Standard theme icon.static final URI
Standard theme icon.static final URI
Standard theme icon.static final URI
Standard theme icon.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final String
Standard theme label.static final com.globalmentor.net.MediaType
The media type for theme resources:application/theme+turf
.static final String
Standard theme message.static final String
Standard theme message.static final String
Standard theme message.static final String
Standard theme message.static final String
Standard theme message.static final String
Standard theme message.static final URI
The property for the URI of the theme's parent.static final URI
The resources property name.static final URI
Theme component.static final URI
Theme component.static final URI
Theme component.static final URI
Theme component.static final String
The recommended prefix to the theme ontology namespace.static final URI
The URI to the theme ontology namespace.Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies this theme to the given object.getClassRules
(Object object) Retrieves the set of rules that selects the class of the given object, including parent classes.io.urf.model.UrfResourceDescription
Retrieves the URI indicating the parent theme.getResourceResources
(Locale locale) Retrieves the resources URF resources.getURI()
void
Sets the theme parent.void
Updates the internal maps of rules.Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Field Details
-
FILENAME_EXTENSION
The extension for Guise theme resource names.- See Also:
-
MEDIA_TYPE
public static final com.globalmentor.net.MediaType MEDIA_TYPEThe media type for theme resources:application/theme+turf
. -
THEME_NAMESPACE_PREFIX
The recommended prefix to the theme ontology namespace.- See Also:
-
THEME_NAMESPACE_URI
The URI to the theme ontology namespace. -
PARENT_URI_PROPERTY_URI
The property for the URI of the theme's parent. -
RESOURCES_PROPERTY_URI
The resources property name. -
COLOR_SELECTED_BACKGROUND
Standard theme color. -
LABEL_ABOUT
Standard theme label. -
LABEL_ABOUT_X
Standard theme label. -
LABEL_ACCEPT
Standard theme label. -
LABEL_ACCESS
Standard theme label. -
LABEL_ACCESS_X
Standard theme label. -
LABEL_ADD
Standard theme label. -
LABEL_ADD_X
Standard theme label. -
LABEL_AUDIO
Standard theme label. -
LABEL_BROWSE
Standard theme label. -
LABEL_CALENDAR
Standard theme label. -
LABEL_CANCEL
Standard theme label. -
LABEL_CLOSE
Standard theme label. -
LABEL_CONFIRM
Standard theme label. -
LABEL_DATE
Standard theme label. -
LABEL_DEFAULT
Standard theme label. -
LABEL_DELETE
Standard theme label. -
LABEL_DELETE_X
Standard theme label. -
LABEL_DOWNLOAD
Standard theme label. -
LABEL_EDIT
Standard theme label. -
LABEL_EMAIL
Standard theme label. -
LABEL_ERROR
Standard theme label. -
LABEL_FINISH
Standard theme label. -
LABEL_FIRST
Standard theme label. -
LABEL_FOLDER
Standard theme label. -
LABEL_GENERAL
Standard theme label. -
LABEL_HELP
Standard theme label. -
LABEL_HOME
Standard theme label. -
LABEL_IMAGE
Standard theme label. -
LABEL_INSERT
Standard theme label. -
LABEL_JOIN
Standard theme label. -
LABEL_JOIN_X
Standard theme label. -
LABEL_LAST
Standard theme label. -
LABEL_LOGIN
Standard theme label. -
LABEL_LOGOUT
Standard theme label. -
LABEL_LOWER
Standard theme label. -
LABEL_MISSING
Standard theme label. -
LABEL_NEXT
Standard theme label. -
LABEL_NEW
Standard theme label. -
LABEL_NEW_X
Standard theme label. -
LABEL_ORDER
Standard theme label. -
LABEL_PASSWORD
Standard theme label. -
LABEL_PASSWORD_VERIFICATION
Standard theme label. -
LABEL_PREVIOUS
Standard theme label. -
LABEL_PRODUCT_JAVA
Standard theme label. -
LABEL_PROPERTIES
Standard theme label. -
LABEL_X_PROPERTIES
Standard theme label. -
LABEL_RAISE
Standard theme label. -
LABEL_READ
Standard theme label. -
LABEL_REFRESH
Standard theme label. -
LABEL_REJECT
Standard theme label. -
LABEL_REMOVE
Standard theme label. -
LABEL_RENAME
Standard theme label. -
LABEL_RENAME_X
Standard theme label. -
LABEL_RESOURCE
Standard theme label. -
LABEL_RETRY
Standard theme label. -
LABEL_SAVE
Standard theme label. -
LABEL_SORT
Standard theme label. -
LABEL_START
Standard theme label. -
LABEL_STOP
Standard theme label. -
LABEL_SUBMIT
Standard theme label. -
LABEL_SUBTRACT
Standard theme label. -
LABEL_TIME
Standard theme label. -
LABEL_TOTAL
Standard theme label. -
LABEL_TYPE
Standard theme label. -
LABEL_UNKNOWN
Standard theme label. -
LABEL_UPLOAD
Standard theme label. -
LABEL_UPLOAD_TO_X
Standard theme label. -
LABEL_URI
Standard theme label. -
LABEL_USERNAME
Standard theme label. -
LABEL_VERIFTY
Standard theme label. -
LABEL_VERSION
Standard theme label. -
LABEL_VIEW
Standard theme label. -
ICON_ABOUT
Standard theme icon. -
ICON_ERROR
Standard theme icon. -
ICON_HELP
Standard theme icon. -
ICON_INFO
Standard theme icon. -
ICON_QUESTION
Standard theme icon. -
ICON_STOP
Standard theme icon. -
ICON_WARN
Standard theme icon. -
GLYPH_ABOUT
Standard theme glyph icon. -
GLYPH_ACCEPT
Standard theme glyph icon. -
GLYPH_ACCEPT_MULTIPLE
Standard theme glyph icon. -
GLYPH_ACCESS
Standard theme glyph icon. -
GLYPH_ADD
Standard theme glyph icon. -
GLYPH_ANIMATION
Standard theme glyph icon. -
GLYPH_ARROW_DOWN
Standard theme glyph icon. -
GLYPH_ARROW_LEFT
Standard theme glyph icon. -
GLYPH_ARROW_RIGHT
Standard theme glyph icon. -
GLYPH_ARROW_UP
Standard theme glyph icon. -
GLYPH_AUDIO
Standard theme glyph icon. -
GLYPH_BLANK
Standard theme glyph icon. -
GLYPH_BROWSE
Standard theme glyph icon. -
GLYPH_BUSY
Standard theme glyph icon. -
GLYPH_CALENDAR
Standard theme glyph icon. -
GLYPH_CANCEL
Standard theme glyph icon. -
GLYPH_CLOSE
Standard theme glyph icon. -
GLYPH_CONFIRM
Standard theme glyph icon. -
GLYPH_DELETE
Standard theme glyph icon. -
GLYPH_DOCUMENT
Standard theme glyph icon. -
GLYPH_DOCUMENT_BROKEN
Standard theme glyph icon. -
GLYPH_DOCUMENT_CONTENT
Standard theme glyph icon. -
GLYPH_DOCUMENT_NEW
Standard theme glyph icon. -
GLYPH_DOCUMENT_PREVIEW
Standard theme glyph icon. -
GLYPH_DOCUMENT_RICH_CONTENT
Standard theme glyph icon. -
GLYPH_DOCUMENT_STACK
Standard theme glyph icon. -
GLYPH_DOWNLOAD
Standard theme glyph icon. -
GLYPH_EDIT
Standard theme glyph icon. -
GLYPH_EMAIL
Standard theme glyph icon. -
GLYPH_ENTER
Standard theme glyph icon. -
GLYPH_ERROR
Standard theme glyph icon. -
GLYPH_EXIT
Standard theme glyph icon. -
GLYPH_EXCLAMATION
Standard theme glyph icon. -
GLYPH_EYEGLASSES
Standard theme glyph icon. -
GLYPH_FINISH
Standard theme glyph icon. -
GLYPH_FIRST
Standard theme glyph icon. -
GLYPH_FOLDER
Standard theme glyph icon. -
GLYPH_FOLDER_CLOSED
Standard theme glyph icon. -
GLYPH_FOLDER_OPEN
Standard theme glyph icon. -
GLYPH_FOLDER_RICH_CONTENT
Standard theme glyph icon. -
GLYPH_FOLDER_TREE
Standard theme glyph icon. -
GLYPH_HELP
Standard theme glyph icon. -
GLYPH_HIDE
Standard theme glyph icon. -
GLYPH_HIERARCHY
Standard theme glyph icon. -
GLYPH_HOME
Standard theme glyph icon. -
GLYPH_IMAGE
Standard theme glyph icon. -
GLYPH_INFO
Standard theme glyph icon. -
GLYPH_INSERT
Standard theme glyph icon. -
GLYPH_JOIN
Standard theme glyph icon. -
GLYPH_KEY
Standard theme glyph icon. -
GLYPH_LAST
Standard theme glyph icon. -
GLYPH_LIST
Standard theme glyph icon. -
GLYPH_LOCK_CLOSED
Standard theme glyph icon. -
GLYPH_LOCK_OPEN
Standard theme glyph icon. -
GLYPH_LOGIN
Standard theme glyph icon. -
GLYPH_LOGOUT
Standard theme glyph icon. -
GLYPH_MEDIA_ADVANCE
Standard theme glyph icon. -
GLYPH_MEDIA_NEXT
Standard theme glyph icon. -
GLYPH_MEDIA_PAUSE
Standard theme glyph icon. -
GLYPH_MEDIA_PLAY
Standard theme glyph icon. -
GLYPH_MEDIA_PREVIOUS
Standard theme glyph icon. -
GLYPH_MEDIA_RECEDE
Standard theme glyph icon. -
GLYPH_MEDIA_RECORD
Standard theme glyph icon. -
GLYPH_MEDIA_STOP
Standard theme glyph icon. -
GLYPH_MISSING
Standard theme glyph icon. -
GLYPH_MUSIC
Standard theme glyph icon. -
GLYPH_NEXT
Standard theme glyph icon. -
GLYPH_ORDER
Standard theme glyph icon. -
GLYPH_PASSWORD
Standard theme glyph icon. -
GLYPH_PICTURE
Standard theme glyph icon. -
GLYPH_POLYGON_CURVED
Standard theme glyph icon. -
GLYPH_POLYGON_POINTS
Standard theme glyph icon. -
GLYPH_PREVIEW
Standard theme glyph icon. -
GLYPH_PREVIOUS
Standard theme glyph icon. -
GLYPH_PRODUCT_JAVA
Standard theme glyph icon. -
GLYPH_PROPERTIES
Standard theme glyph icon. -
GLYPH_QUESTION
Standard theme glyph icon. -
GLYPH_REFRESH
Standard theme glyph icon. -
GLYPH_REMOVE
Standard theme glyph icon. -
GLYPH_REJECT
Standard theme glyph icon. -
GLYPH_REJECT_MULTIPLE
Standard theme glyph icon. -
GLYPH_RENAME
Standard theme glyph icon. -
GLYPH_RESOURCE
Standard theme glyph icon. -
GLYPH_RETRY
Standard theme glyph icon. -
GLYPH_SAVE
Standard theme glyph icon. -
GLYPH_SELECTED
Standard theme glyph icon. -
GLYPH_SORT
Standard theme glyph icon. -
GLYPH_SPEECH_BUBBLE
Standard theme glyph icon. -
GLYPH_SPEECH_BUBBLE_TEXT
Standard theme glyph icon. -
GLYPH_SPEECH_BUBBLE_TEXT_ADD
Standard theme glyph icon. -
GLYPH_START
Standard theme glyph icon. -
GLYPH_STOP
Standard theme glyph icon. -
GLYPH_STRING_EDIT
Standard theme glyph icon. -
GLYPH_SUBMIT
Standard theme glyph icon. -
GLYPH_SUBTRACT
Standard theme glyph icon. -
GLYPH_THUMBNAILS
Standard theme glyph icon. -
GLYPH_TREE
Standard theme glyph icon. -
GLYPH_UNSELECTED
Standard theme glyph icon. -
GLYPH_UPLOAD
Standard theme glyph icon. -
GLYPH_USER
Standard theme glyph icon. -
GLYPH_VERIFY
Standard theme glyph icon. -
GLYPH_VIEW
Standard theme glyph icon. -
GLYPH_WARN
Standard theme glyph icon. -
MESSAGE_BUSY
Standard theme message. -
MESSAGE_PASSWORD_INVALID
Standard theme message. -
MESSAGE_PASSWORD_UNVERIFIED
Standard theme message. -
MESSAGE_TASK_SUCCESS
Standard theme message. -
MESSAGE_USER_INVALID
Standard theme message. -
MESSAGE_USER_EXISTS
Standard theme message. -
CURSOR_CROSSHAIR
Standard theme cursor. -
CURSOR_DEFAULT
Standard theme cursor. -
CURSOR_HELP
Standard theme cursor. -
CURSOR_MOVE
Standard theme cursor. -
CURSOR_POINTER
Standard theme cursor. -
CURSOR_PROGRESS
Standard theme cursor. -
CURSOR_RESIZE_LINE_FAR
Standard theme cursor. -
CURSOR_RESIZE_LINE_FAR_PAGE_FAR
Standard theme cursor. -
CURSOR_RESIZE_LINE_FAR_PAGE_NEAR
Standard theme cursor. -
CURSOR_RESIZE_LINE_NEAR
Standard theme cursor. -
CURSOR_RESIZE_LINE_NEAR_PAGE_FAR
Standard theme cursor. -
CURSOR_RESIZE_LINE_NEAR_PAGE_NEAR
Standard theme cursor. -
CURSOR_RESIZE_PAGE_FAR
Standard theme cursor. -
CURSOR_RESIZE_PAGE_NEAR
Standard theme cursor. -
CURSOR_TEXT
Standard theme cursor. -
CURSOR_WAIT
Standard theme cursor. -
SLIDER_THUMB_X_IMAGE
Theme component. -
SLIDER_THUMB_Y_IMAGE
Theme component. -
SLIDER_TRACK_X_IMAGE
Theme component. -
SLIDER_TRACK_Y_IMAGE
Theme component.
-
-
Constructor Details
-
Theme
URI and description constructor.- Parameters:
uri
- The URI of the theme.description
- The theme description, loaded from a legacy Guise theme file.
-
-
Method Details
-
getDescription
public io.urf.model.UrfResourceDescription getDescription()- Returns:
- The theme description.
-
getParent
- Returns:
- The theme parent, or
null
if there is no resolving parent.
-
setParent
Sets the theme parent.- Parameters:
newParent
- The new theme parent, ornull
if there should be no resolving parent.
-
getClassRules
Retrieves the set of rules that selects the class of the given object, including parent classes. It is not guaranteed that the object will match all or any of the returned rules; only that the object's class is used as part of the selections of the returned rules.- Parameters:
object
- The object for which class-selected rules should be returned.- Returns:
- A set of all rules that reference a class that selects the given object's class.
- Throws:
NullPointerException
- if the given object isnull
.
-
getURI
- Returns:
- The URI of the theme.
-
getParentURI
Retrieves the URI indicating the parent theme.- Returns:
- The URI indicating the parent theme, or
null
if no parent theme is indicated or the value is not a URI.
-
getResourceResources
Retrieves the resources URF resources. Each resource may indicate an external set of resources to load by providing a reference URI, or be a map of resource definitions.- Parameters:
locale
- The locale of the resource to be retrieved.- Returns:
- The list of resources that indicate resources locations and/or contain resource definitions.
-
updateRules
Updates the internal maps of rules. This method should be called after rules are modified so that rules will be applied correctly in the future.- Throws:
ClassNotFoundException
- if one of the rules selects a class that cannot be found.
-
apply
Applies this theme to the given object. Any parent theme is first applied to the object before this theme is applied.- Parameters:
object
- The object to which this theme should be applied.- Throws:
NullPointerException
- if the given object isnull
.IllegalStateException
- if a resource is a Java-typed resource the class of which cannot be found.IllegalStateException
- if a particular value is not an appropriate argument for the corresponding property.IllegalStateException
- If a particular property could not be accessed.IllegalStateException
- if a resource indicates a Java class the constructor of which throws an exception.
-