Package com.luciad.lucy.gui
Class TLcyGroupDescriptor
java.lang.Object
com.luciad.lucy.gui.TLcyGroupDescriptor
Represents a group of elements. This way, elements like actions, components, etc. can be
grouped logically according to their TLcyGroupDescriptor.
Group descriptors are for example used in an
ILcyActionBar
(e.g. a tool bar)
to know which buttons belong together. Buttons belonging to the same group can then be
visually distinguished from other buttons by using separators.
Note that this concept is totally unrelated to javax.swing.ButtonGroup
. That
group is used to make sure only one radio button of a group is activated at a given time.
To check if group descriptors are equal, their equals method should be used.- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreates a new, uniqueTLcyGroupDescriptor
.TLcyGroupDescriptor
(String aUID) Creates a newTLcyGroupDescriptor
, identified by the given unique ID. -
Method Summary
-
Field Details
-
DEFAULT
Default group descriptor.
-
-
Constructor Details
-
TLcyGroupDescriptor
public TLcyGroupDescriptor()Creates a new, uniqueTLcyGroupDescriptor
.equals
will only return true if this instance is given as a parameter. -
TLcyGroupDescriptor
Creates a new
TLcyGroupDescriptor
, identified by the given unique ID.If multiple
TLcyGroupDescriptor
s are created with the same aID, using equals on one such instance with the other instance as an argument will return true.If the given UID contains a ';' character, then the actual UID that is used will be the part before the ';'. The part after the semicolon is typically interpreted by the group descriptor order.
- Parameters:
aUID
- The identifier that uniquely identifies thisTLcyGroupDescriptor
.
-
-
Method Details
-
getUID
Returns the UID passed in the constructor, or null if no UID was set.- Returns:
- the UID passed in the constructor, or null if no UID was set.
-
equals
Returns true if the UID's of this instance and the given instance are equal and both not null. If both UID's are null, only returns true if this == obj. -
hashCode
public int hashCode() -
toString
-