Interface iDockable
- All Known Implementing Classes:
planetDockable,playbarDockable,starDateDockable,tileDockable
public interface iDockable
Provide an interface for any dockable that can be added (docked) into the zUIDock
container.
- Author:
- Kevin Moore
<dev@kevin.moore.name> - See Also:
name.moore.kevin.ze.swing.zUIDock
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddPropertyChangeListener(PropertyChangeListener propertyChangeListener)Allow others to listen to changes to this object and its fields.default voidaddPropertyChangeListener(String propertyName, PropertyChangeListener propertyChangeListener)getName()Set when constructing the handler, an internal identity.default StringReturn the dock location - one of the cardinals eg "north".default StringgetText()The current and changeable displayed text.default intdefault intdefault StringThis XML should have the content of the dockable in a panel.default void
-
Method Details
-
getName
String getName()Set when constructing the handler, an internal identity.- Returns:
- unique name of this dockable component.
-
getTileWidth
default int getTileWidth()- Returns:
- width in terms of grid slots to use, default is 1
-
getTileHeight
default int getTileHeight()- Returns:
- height in terms of grid slots to use, default is 1
-
getPreferredDock
Return the dock location - one of the cardinals eg "north". Default to "center" matching the default 1x1 tile size.- Returns:
-
getXMLlayout
This XML should have the content of the dockable in a panel.- Returns:
-
getText
The current and changeable displayed text.- Returns:
-
addPropertyChangeListener
Allow others to listen to changes to this object and its fields. Default to a NOP so we don't have to implement.- Parameters:
propertyChangeListener-
-
addPropertyChangeListener
default void addPropertyChangeListener(String propertyName, PropertyChangeListener propertyChangeListener)- Parameters:
propertyName-propertyChangeListener-
-
removePropertyChangeListener
-