org.pietschy.command.demo
Class PageSelectorGroup
- CommandManagerListener, EventListener
public class PageSelectorGroup
This class extends
ToggleCommandGroup
to provide a widget based on the
JButtonBar component from http://l2fprod.com/.
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, String faceName) - Creates a new JButtonBar with the specified orientation using the specified face.
|
String[] | getAlternativeFaceNames(String face) - Overrides the default implementation to provide defaults for the page-selector face if
it hasn't been specified.
|
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 , isAllowableMember , isInlineMember , isMember , rebuildAllPopups , remove , remove , removeGroupListener , reset , reset , visit , visitChildren |
addFace , addHoverListener , addNewFace , addNotify , addPropertyChangeListener , addPropertyChangeListener , attach , buttonIterator , configureButtonAppearance , configureButtonAppearances , configureButtonAppearances , configureButtonStates , createButton , createButton , createButton , createButton , createMenuItem , createMenuItem , createMenuItem , createMenuItem , detach , export , faceExists , fireHoverEnded , fireHoverStarted , getAccelerator , getAlternativeFaceNames , 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 |
PageSelectorGroup
public PageSelectorGroup(CommandManager container,
String groupId)
Creates a new group with the specified Id and that uses the specified
CommandManager
.
container
- the CommandManager
the group is to use.groupId
- the id of the group.
createButtonBar
public JButtonBar createButtonBar()
Creates a new vertical JButtonBar using the "page-selector" face.
- 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.
orientation
- the orientation of the bar, either JButtonBar.VERTICAL
or
JButtonBar.HORIZONTAL
.
- a new JButtonBar for this group.
createButtonBar
public JButtonBar createButtonBar(int orientation,
String faceName)
Creates a new JButtonBar with the specified orientation using the specified face.
orientation
- the orientation of the bar, either JButtonBar.VERTICAL
or
JButtonBar.HORIZONTAL
.faceName
- the face for button bar and its members to use.
- a new JButtonBar for this group.
getAlternativeFaceNames
public String[] getAlternativeFaceNames(String face)
Overrides the default implementation to provide defaults for the page-selector face if
it hasn't been specified.
- getAlternativeFaceNames in interface Command
face
- the desired face name
- a String array with the alternate faces in preferred order.