| javax.swing.JPanel net.xoetrope.builder.editor.XToolPalette
XToolPalette | public class XToolPalette extends JPanel implements ActionListener(Code) | | A toolbar class
Copyright: Copyright (c) Xoetrope Ltd., 1998-2003
$Revision: 1.20 $
|
toolPanelstandardPanel | protected JPanel toolPanelstandardPanel(Code) | | |
addToggleTool | public JToggleButton addToggleTool(JPanel targetPanel, String imageName, String tooltipText)(Code) | | Add an toggle button to the toolbar.
Parameters: targetPanel - the tab panel to which the new tool is added Parameters: imageName - the name of the image resource Parameters: compId - the ID of the component type Parameters: tooltipText - the text of the tooltip the new image component |
addTool | public JButton addTool(JPanel targetPanel, String imageName, int compId, String tooltipText)(Code) | | Add an toggle button to the toolbar.
Parameters: targetPanel - the tab panel to which the new tool is added Parameters: imageName - the name of the image resource Parameters: compId - the ID of the component type Parameters: tooltipText - the text of the tooltip the new image component |
componentAdded | public void componentAdded()(Code) | | |
initAlignmentTools | public void initAlignmentTools(boolean enabled)(Code) | | Initialize the alignment toggle buttons
Parameters: enabled - true to enable the buttons |
initEditTools | public void initEditTools(boolean cut, boolean copy, boolean paste)(Code) | | Change the state of the edit menu
Parameters: cut - enable the cut menu item Parameters: copy - enable the copy menu item Parameters: paste - enable the paste menu item |
insertComponents | public void insertComponents(String tabName, Component[] components)(Code) | | Add an array of components to the toolbar
Parameters: tabName - the name of the toolbar tab associated with these components Parameters: components - the components |
removeComponents | public void removeComponents(String tabName)(Code) | | Remove the tab with the set of named components
Parameters: tabName - the tab name |
resetButtons | public void resetButtons()(Code) | | Reset the toolpalette to show the current tool selection
Parameters: btn - |
setCurrentButton | public void setCurrentButton(AbstractButton btn)(Code) | | Set the currently selected component on the toolbar
Parameters: btn - selected object |
|
|