public class TLcyGroupDescriptor extends Object
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.ILcyActionBar
Modifier and Type | Field and Description |
---|---|
static TLcyGroupDescriptor |
DEFAULT
Default group descriptor.
|
Constructor and Description |
---|
TLcyGroupDescriptor()
Creates a new, unique
TLcyGroupDescriptor . |
TLcyGroupDescriptor(String aUID)
Creates a new
TLcyGroupDescriptor , identified by the given
unique ID. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Returns true if the UID's of this instance and the given instance are
equal and both not null.
|
String |
getUID()
Returns the UID passed in the constructor, or null if no UID was set.
|
int |
hashCode() |
String |
toString() |
public static TLcyGroupDescriptor DEFAULT
public TLcyGroupDescriptor()
TLcyGroupDescriptor
.
equals
will only return true if this instance is given as a
parameter.public TLcyGroupDescriptor(String aUID)
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.
aUID
- The identifier that uniquely identifies this
TLcyGroupDescriptor
.public String getUID()
public boolean equals(Object obj)