org.pietschy.command.demo
Class PageSelectorGroup
java.lang.Object
org.pietschy.command.Command
org.pietschy.command.CommandGroup
org.pietschy.command.ToggleCommandGroup
org.pietschy.command.demo.PageSelectorGroup
- All Implemented Interfaces:
- java.util.EventListener, CommandManagerListener
public class PageSelectorGroup
- extends ToggleCommandGroup
This class extends ToggleCommandGroup
to provide a widget based on the
JButtonBar component from http://l2fprod.com/.
- Version:
- $Revision: 1.8 $
- Author:
- andrewp
Method Summary |
JButtonBar |
createButtonBar()
Creates a new vertical JButtonBar using the "page-selector" face. |
JButtonBar |
createButtonBar(int orientation)
Creates a new JButtonBar with the specified orientation using the "page-selector" face. |
JButtonBar |
createButtonBar(int orientation,
java.lang.String faceName)
Creates a new JButtonBar with the specified orientation using the specified face. |
java.lang.String[] |
getAlternativeFaceNames(java.lang.String face)
Overrides the default implementation to provide defaults for the page-selector face if
it hasn't been specified. |
Methods inherited from class org.pietschy.command.CommandGroup |
acceptVisitor, add, add, addGlue, addGlue, addGroupListener, addInline, addInline, addSeparator, addSeparator, bindMembers, bindMembers, commandRegistered, contains, createButton, createButton, createMenuBar, createMenuBar, createMenuBar, createMenuBar, createMenuItem, createPopupMenu, createPopupMenu, createToolBar, createToolBar, createToolBar, createToolBar, fireMembersChanged, getMemberCount, getMemberFactory, getMemberList, isInlineMember, isMember, rebuildAllPopups, remove, remove, removeGroupListener, reset, reset, visit, visitChildren |
Methods inherited from class org.pietschy.command.Command |
addFace, addHoverListener, addNewFace, addNotify, addPropertyChangeListener, addPropertyChangeListener, attach, buttonIterator, configureButtonAppearance, configureButtonAppearances, configureButtonAppearances, configureButtonStates, createButton, createButton, createButton, createMenuItem, createMenuItem, createMenuItem, detach, export, faceExists, fireHoverEnded, fireHoverStarted, getAccelerator, getButtonFactory, getButtonIn, getCommandManager, getDefaultFace, getDefaultFace, getDescription, getFace, getFace, getIcon, getId, getLongDescription, getMenuFactory, getMnemonic, getMnemonicIndex, getProperty, getProperty, getPropertyNames, getSelectedIcon, getText, getTextPosition, getToolbarFactory, initCommandManager, installFace, isAnonymous, isAttachedTo, isEnabled, isVisible, putProperty, removeHoverListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, requestFocusIn, setAccelerator, setButtonFactory, setDescription, setEnabled, setIcon, setLongDescription, setMenuFactory, setMnemonic, setMnemonicIndex, setSelectedIcon, setText, setTextPosition, setToolbarFactory, setVisible, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PageSelectorGroup
public PageSelectorGroup(CommandManager container,
java.lang.String groupId)
- Creates a new group with the specified Id and that uses the specified
CommandManager
.
- Parameters:
groupId
- the id of the group.container
- the CommandManager
the group is to use.
createButtonBar
public JButtonBar createButtonBar()
- Creates a new vertical JButtonBar using the "page-selector" face.
- Returns:
- a new JButtonBar for this group.
createButtonBar
public JButtonBar createButtonBar(int orientation)
- Creates a new JButtonBar with the specified orientation using the "page-selector" face.
- Parameters:
orientation
- the orientation of the bar, either JButtonBar#VERTICAL
or
JButtonBar#HORIZONTAL
.
- Returns:
- a new JButtonBar for this group.
createButtonBar
public JButtonBar createButtonBar(int orientation,
java.lang.String faceName)
- Creates a new JButtonBar with the specified orientation using the specified face.
- Parameters:
orientation
- the orientation of the bar, either JButtonBar#VERTICAL
or
JButtonBar#HORIZONTAL
.faceName
- the face for button bar and its members to use.
- Returns:
- a new JButtonBar for this group.
getAlternativeFaceNames
public java.lang.String[] getAlternativeFaceNames(java.lang.String face)
- Overrides the default implementation to provide defaults for the page-selector face if
it hasn't been specified.
- Overrides:
getAlternativeFaceNames
in class Command
- Parameters:
face
- the desired face name
- Returns:
- a String array with the alternate faces in preferred order.