|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectTopComponent
org.formaria.editor.netbeans.project.pages.ComponentPalette
public class ComponentPalette
| Field Summary | |
|---|---|
protected EditorProject |
currentProject
The owner project and the context in which this object operates. |
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
javax.swing.JToggleButton |
addToggleTool(javax.swing.ButtonGroup bg,
javax.swing.JToolBar targetPanel,
EditorComponentAdapter eca)
Add an toggle button to the toolbar. |
javax.swing.JToggleButton |
addToggleTool(javax.swing.ButtonGroup bg,
javax.swing.JToolBar targetPanel,
java.lang.String imageName,
java.lang.String tooltipText)
Add an toggle button to the toolbar. |
void |
addToolbarListener(ToolbarSelectionListener l)
|
java.util.List |
availableModes(java.util.List modes)
|
boolean |
canClose()
|
void |
componentAdded()
|
static ComponentPalette |
getDefault()
|
int |
getPersistenceType()
|
java.lang.String |
preferredID()
|
java.lang.Object |
readResolve()
Resolve to singleton instance |
void |
refresh()
Refresh the list of components registered via extra component factories. |
void |
setBounds(int x,
int y,
int w,
int h)
|
void |
setNewComponent(java.awt.Component c)
|
void |
setPageDesigner(PageDesigner pd)
|
void |
setSelectedComponents(IPagePanel currentPagePanel,
java.util.Vector selectedComponents,
boolean contentsChanged)
Called when a component has been selected |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected EditorProject currentProject
| Method Detail |
|---|
public static ComponentPalette getDefault()
public java.util.List availableModes(java.util.List modes)
public boolean canClose()
public void refresh()
refresh in interface IComponentPalette
public javax.swing.JToggleButton addToggleTool(javax.swing.ButtonGroup bg,
javax.swing.JToolBar targetPanel,
java.lang.String imageName,
java.lang.String tooltipText)
bg - the buttton group to which the new button belongstargetPanel - the tab panel to which the new tool is addedimageName - the name of the image resourcecompId - the ID of the component typetooltipText - the text of the tooltip
public javax.swing.JToggleButton addToggleTool(javax.swing.ButtonGroup bg,
javax.swing.JToolBar targetPanel,
EditorComponentAdapter eca)
bg - the buttton group to which the new button belongstargetPanel - the tab panel to which the new tool is addedimageName - the name of the image resourcecompId - the ID of the component typetooltipText - the text of the tooltip
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListener
public void setBounds(int x,
int y,
int w,
int h)
public java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamExceptionpublic java.lang.String preferredID()
public int getPersistenceType()
public void setSelectedComponents(IPagePanel currentPagePanel,
java.util.Vector selectedComponents,
boolean contentsChanged)
setSelectedComponents in interface ComponentSelectListenerselectedComponents - public void componentAdded()
componentAdded in interface EditorComponentListenerpublic void setNewComponent(java.awt.Component c)
setNewComponent in interface EditorComponentListenerpublic void addToolbarListener(ToolbarSelectionListener l)
addToolbarListener in interface IComponentPalettepublic void setPageDesigner(PageDesigner pd)
setPageDesigner in interface IComponentPalette
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||