bibliothek.gui.dock.util
Class PropertyKey<A>

java.lang.Object
  extended by bibliothek.gui.dock.util.PropertyKey<A>
Type Parameters:
A - the type of entry

public class PropertyKey<A>
extends java.lang.Object

The key for an entry of DockProperties.

Author:
Benjamin Sigg

Field Summary
static PropertyKey<javax.swing.Icon> DOCK_STATION_ICON
          The Icon used for a DockStation if it has no icon.
static PropertyKey<java.lang.String> DOCK_STATION_TITLE
          The title of a DockStation if it has no title.
static PropertyKey<javax.swing.Icon> DOCKABLE_ICON
          The Icon used for a Dockable if it has no icon.
static PropertyKey<java.lang.String> DOCKABLE_TITLE
          The title of a Dockable if it has no title.
private  java.lang.String id
          a unique identifier
 
Constructor Summary
PropertyKey(java.lang.String id)
          Creates a new key.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOCKABLE_ICON

public static final PropertyKey<javax.swing.Icon> DOCKABLE_ICON
The Icon used for a Dockable if it has no icon.


DOCK_STATION_ICON

public static final PropertyKey<javax.swing.Icon> DOCK_STATION_ICON
The Icon used for a DockStation if it has no icon.


DOCKABLE_TITLE

public static final PropertyKey<java.lang.String> DOCKABLE_TITLE
The title of a Dockable if it has no title.


DOCK_STATION_TITLE

public static final PropertyKey<java.lang.String> DOCK_STATION_TITLE
The title of a DockStation if it has no title.


id

private java.lang.String id
a unique identifier

Constructor Detail

PropertyKey

public PropertyKey(java.lang.String id)
Creates a new key.

Parameters:
id - a unique identifier, should contain the name of the type of property, represented by this key.
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object