|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.jidesoft.swing.JideSplitPane
com.jidesoft.document.DocumentPane
com.jidesoft.dashboard.DashboardDocumentPane
public class DashboardDocumentPane
DashboardDocumentPane contains several dashboards and uses DocumentPane to arrange them. Each document
in DocumentPane is a Dashboard.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.jidesoft.document.DocumentPane |
|---|
DocumentPane.DocumentTabColorProvider, DocumentPane.TabbedPaneCustomizer |
| Nested classes/interfaces inherited from class com.jidesoft.swing.JideSplitPane |
|---|
JideSplitPane.AccessibleJideSplitPane |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
DocumentComponentAdapter |
_documentComponentListener
|
PropertyChangeListener |
_propertyChangeListener
|
| Fields inherited from class com.jidesoft.swing.JideSplitPane |
|---|
_windowDeactivatedListener, CONTINUOUS_LAYOUT_PROPERTY, DIVIDER_SIZE_PROPERTY, GRIPPER_PROPERTY, HORIZONTAL_SPLIT, NON_CONTINUOUS_DIVIDER, ONE_TOUCH_EXPANDABLE_PROPERTY, ORIENTATION_PROPERTY, PROPERTY_DIVIDER_LOCATION, PROPORTIONAL_LAYOUT_PROPERTY, PROPORTIONS_PROPERTY, VERTICAL_SPLIT |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface com.jidesoft.document.IDocumentPane |
|---|
CLOSE_ACTION_TO_CLOSE, CLOSE_ACTION_TO_DOCK, FLOATING_CONTAINER_TYPE_DIALOG, FLOATING_CONTAINER_TYPE_FRAME |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DashboardDocumentPane()
|
|
DashboardDocumentPane(GadgetManager gadgetManager)
|
|
| Method Summary | |
|---|---|
void |
closeAll()
Closes all documents. |
Dashboard |
createDashboard(String key)
Creates the dashboard added by the add button. |
protected DocumentComponent |
createDocumentComponent(Dashboard dashboard)
|
protected GadgetPalette |
createGadgetPalette()
|
protected Container |
createToolBarComponent()
|
void |
editingCanceled(TabEditingEvent e)
This tells the listeners the tab editing is canceled |
void |
editingStarted(TabEditingEvent e)
This tells the listeners the tab editing is started |
void |
editingStopped(TabEditingEvent e)
This tells the listeners the tab editing is stopped |
void |
eventHappened(DashboardEvent e)
Invoked when a Gadget event happened |
void |
eventHappened(GadgetEvent e)
Invoked when a Gadget event happened |
Dashboard |
getActiveDashboard()
|
Dashboard |
getDashboardAt(int index)
Gets the dashboard at the specified index. |
int |
getDashboardCount()
Gets the total number of dashboard. |
GadgetManager |
getGadgetManager()
Gets the gadget manager. |
protected ImageIcon |
getImageIcon(String name)
Gets the image icons that is used in PropertyPane. |
int |
getPaletteSide()
Gets the palette side. |
protected String |
getResourceString(String key)
Gets the localized string from resource bundle. |
int |
getToolBarAlignment()
Gets the toolbar alignment. |
Container |
getValidParent(Component c)
|
void |
hidePalette()
Hides the palette. |
int |
indexOfDashboard(Dashboard dashboard)
Gets the index of the dashboard. |
protected void |
initComponents()
|
protected boolean |
isDocumentGroupEmpty(IDocumentGroup documentGroup)
Checks if the document group is empty. |
boolean |
isPaletteVisible(Component invoker)
Checks if the palette is visible. |
boolean |
isUseFloatingPalette()
|
void |
setActiveDocument(String name,
boolean requestFocus)
Sets the document that is identified by name as active. |
void |
setPaletteSide(int paletteSide)
Sets the palette side. |
void |
setToolBarAlignment(int alignment)
Sets the toolbar location. |
void |
setUseFloatingPalette(boolean useFloatingPalette)
|
void |
showPalette(Component invoker)
Shows the palette. |
void |
togglePalette(Component invoker)
Toggles the palette visibility. |
| Methods inherited from class javax.swing.JPanel |
|---|
getUI, getUIClassID, paramString, setUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public DocumentComponentAdapter _documentComponentListener
public PropertyChangeListener _propertyChangeListener
| Constructor Detail |
|---|
public DashboardDocumentPane()
public DashboardDocumentPane(GadgetManager gadgetManager)
| Method Detail |
|---|
public void editingStarted(TabEditingEvent e)
TabEditingListener
editingStarted in interface TabEditingListenerpublic void editingStopped(TabEditingEvent e)
TabEditingListener
editingStopped in interface TabEditingListenerpublic void editingCanceled(TabEditingEvent e)
TabEditingListener
editingCanceled in interface TabEditingListenerpublic GadgetManager getGadgetManager()
DashboardHolder
getGadgetManager in interface DashboardHolderprotected void initComponents()
protected Container createToolBarComponent()
public Dashboard createDashboard(String key)
createDashboard in interface DashboardHolderkey - the key for the dashboard.
protected boolean isDocumentGroupEmpty(IDocumentGroup documentGroup)
DocumentPane
isDocumentGroupEmpty in class DocumentPanedocumentGroup - the document group
public void eventHappened(GadgetEvent e)
GadgetListenerGadget event happened
eventHappened in interface GadgetListenere - GadgetEventpublic void eventHappened(DashboardEvent e)
DashboardListenerGadget event happened
eventHappened in interface DashboardListenere - GadgetEventprotected DocumentComponent createDocumentComponent(Dashboard dashboard)
public void setActiveDocument(String name,
boolean requestFocus)
DocumentPane
setActiveDocument in interface IDocumentPanesetActiveDocument in class DocumentPanename - the name of the document.requestFocus - if the active document will request focus.public int getDashboardCount()
public Dashboard getDashboardAt(int index)
index - the index.
public int indexOfDashboard(Dashboard dashboard)
dashboard - the index.
public void togglePalette(Component invoker)
invoker - the invoker that calls to this togglePalette method.public Container getValidParent(Component c)
public boolean isPaletteVisible(Component invoker)
invoker - the invoker which calls this method.
public void setPaletteSide(int paletteSide)
paletteSide - the palette sidepublic int getPaletteSide()
getPaletteSide in interface GadgetPaletteInstallersetPaletteSide(int)public void showPalette(Component invoker)
showPalette in interface GadgetPaletteInstallerinvoker - the invoker which calls this method.protected GadgetPalette createGadgetPalette()
public void hidePalette()
GadgetPaletteInstaller
hidePalette in interface GadgetPaletteInstallerpublic Dashboard getActiveDashboard()
getActiveDashboard in interface DashboardHolderpublic boolean isUseFloatingPalette()
public void setUseFloatingPalette(boolean useFloatingPalette)
public void setToolBarAlignment(int alignment)
alignment - the toolbar alignmentpublic int getToolBarAlignment()
protected ImageIcon getImageIcon(String name)
IconsFactory
to get the image icons.
Subclass can override this method to provide their own icon. The the value of the name parameter will be either
"icons/add.png" or "icons/property.png".
name - the icon name
protected String getResourceString(String key)
getResourceString in class DocumentPanekey - the resource key.
public void closeAll()
DocumentPane
closeAll in interface IDocumentPanecloseAll in class DocumentPane
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||