|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JTabbedPane com.jidesoft.swing.JideTabbedPane com.jidesoft.docking.FrameContainer
public class FrameContainer
Container to hold DockableFrame when they are tabbed.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jidesoft.swing.JideTabbedPane |
---|
JideTabbedPane.ColorProvider, JideTabbedPane.GradientColorProvider, JideTabbedPane.IgnoreableSingleSelectionModel, JideTabbedPane.NoFocusButton, JideTabbedPane.PageLastFocusTracker, JideTabbedPane.TabListCellRenderer |
Nested classes/interfaces inherited from class javax.swing.JTabbedPane |
---|
JTabbedPane.AccessibleJTabbedPane, JTabbedPane.ModelListener |
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 |
---|
Fields inherited from class javax.swing.JTabbedPane |
---|
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT |
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 java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
FrameContainer(DockingManager dockingManager)
|
|
FrameContainer(DockingManager dockingManager,
int tabPlacement,
int tabLayoutPolicy)
|
Method Summary | |
---|---|
void |
addTab(DockableFrame frame)
A shortcut to add DOckableFrame as tab. |
void |
addTab(DockableFrame frame,
boolean suppressEvents)
|
void |
componentAdded(ContainerEvent e)
Invoked when a component has been added to the container. |
void |
componentHidden(ComponentEvent e)
Invoked when the component has been made invisible. |
void |
componentMoved(ComponentEvent e)
Invoked when the component's position changes. |
void |
componentRemoved(ContainerEvent e)
Invoked when a component has been removed from the container. |
void |
componentResized(ComponentEvent e)
Invoked when the FrameContainer's size changes. |
void |
componentShown(ComponentEvent e)
Invoked when the component has been made visible. |
int |
getAutohideHeight()
Gets the height of the component when it's in auto-hide mode. |
com.jidesoft.docking.PreviousState |
getAutohidePreviousState()
Gets the state before the component switch to auto-hide mode. |
int |
getAutohideWidth()
Gets the width of the component when it's in auto-hide mode. |
int |
getDockedHeight()
Gets the height when the component is docked inside a JFrame. |
int |
getDockedWidth()
Gets the width when the component is docked inside a JFrame. |
int |
getDockID()
Gets dock id. |
DockingManager |
getDockingManager()
Gets the docking manager. |
com.jidesoft.docking.PreviousState |
getDockPreviousState()
Gets the state before the component switch to dock mode. |
com.jidesoft.docking.PreviousState |
getFloatPreviousState()
Gets the state before the component switch to floating mode. |
DockableFrame |
getFrame(int index)
|
int |
getFrameIndex(DockableFrame frame)
|
com.jidesoft.docking.PreviousState |
getHiddenPreviousState()
Gets the state before the component switch to hidden mode. |
DockableFrame |
getSelectedFrame()
|
Rectangle |
getUndockedBounds()
Gets the un-restricted bounds. |
boolean |
hasFocusComponent()
Checks if the JideTabbedPane has the focus component. |
void |
insertTab(DockableFrame frame,
int index)
A shortcut to insert DockableFrame as tab. |
void |
insertTab(DockableFrame frame,
int index,
boolean suppressEvents)
|
boolean |
isAllAutohidable()
Checks if all dockable frames in it is autohidable. |
boolean |
isAllAutohidable(int side)
Checks if all dockable frames in it is autohidable and its preferred autohide side matches with the side passed in. |
boolean |
isAllFloatable()
Checks if all dockable frames in it is floatable. |
boolean |
isAllHidable()
Checks if all dockable frames in it is hidable. |
boolean |
isEnabledAt(int index)
|
boolean |
isTabClosableAt(int tabIndex)
Overrides to get the isHidable value from dockable frame. |
void |
popupSelectedIndex(int index)
|
void |
propertyChange(PropertyChangeEvent evt)
This method gets called when a bound property is changed. |
void |
remove(Component component,
boolean suppressEvents)
|
void |
repaintTabAreaAndContentBorder()
Repaints the tab area and the content border if any. |
void |
resetDockID()
Resets dock id. |
void |
setAutohideHeight(int h)
Sets the height when the component is auto-hide. |
void |
setAutohidePreviousState(com.jidesoft.docking.PreviousState state)
Saves the state before the compoennt switch to auto-hide mode. |
void |
setAutohideWidth(int w)
Sets the width when the component is auto-hide. |
void |
setDockedHeight(int h)
Sets the height when the component is docked inside a JFrame. |
void |
setDockedWidth(int w)
Sets the width when the component is docked inside a JFrame. |
void |
setDockID(int id)
Sets dock id. |
void |
setDockingManager(DockingManager dockingManager)
Sets the docking Manager. |
void |
setDockPreviousState(com.jidesoft.docking.PreviousState state)
Saves the state before the compoennt switch to dock mode. |
void |
setFloatPreviousState(com.jidesoft.docking.PreviousState state)
Saves the state before the compoennt switch to floating mode. |
void |
setHiddenPreviousState(com.jidesoft.docking.PreviousState state)
Saves the state before the compoennt switch to hidden mode. |
void |
setSelectedComponent(Component c)
|
void |
setSelectedIndex(int index)
|
void |
setSelectedIndex(int index,
boolean suppressEvents)
|
void |
setTitleAt(int index,
String title)
|
void |
setUndockedBounds(Rectangle bounds)
Sets the un-restricted bounds. |
void |
updateUI()
Resets the UI property to a value from the current look and feel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FrameContainer(DockingManager dockingManager)
public FrameContainer(DockingManager dockingManager, int tabPlacement, int tabLayoutPolicy)
Method Detail |
---|
public void updateUI()
updateUI
in class JideTabbedPane
JComponent.updateUI()
public void componentAdded(ContainerEvent e)
componentAdded
in interface ContainerListener
public boolean isEnabledAt(int index)
isEnabledAt
in class JTabbedPane
public void componentRemoved(ContainerEvent e)
componentRemoved
in interface ContainerListener
public void componentResized(ComponentEvent e)
componentResized
in interface ComponentListener
public void componentMoved(ComponentEvent e)
componentMoved
in interface ComponentListener
public void componentShown(ComponentEvent e)
componentShown
in interface ComponentListener
public void componentHidden(ComponentEvent e)
componentHidden
in interface ComponentListener
public void addTab(DockableFrame frame)
frame
- a new dockable frame to be added.public void addTab(DockableFrame frame, boolean suppressEvents)
public void insertTab(DockableFrame frame, int index)
frame
- a new dockable frameindex
- the index to be insertedpublic void insertTab(DockableFrame frame, int index, boolean suppressEvents)
public void setTitleAt(int index, String title)
setTitleAt
in class JTabbedPane
public void remove(Component component, boolean suppressEvents)
public void setSelectedComponent(Component c)
setSelectedComponent
in class JTabbedPane
public void setSelectedIndex(int index, boolean suppressEvents)
public void setSelectedIndex(int index)
setSelectedIndex
in class JideTabbedPane
public void popupSelectedIndex(int index)
popupSelectedIndex
in class JideTabbedPane
public DockingManager getDockingManager()
Dockable
public void setDockingManager(DockingManager dockingManager)
Dockable
dockingManager
- new docking managerpublic void setDockedWidth(int w)
w
- new widthpublic void setDockedHeight(int h)
h
- new heightpublic void setAutohideWidth(int w)
w
- new widthpublic void setAutohideHeight(int h)
h
- new heightpublic int getDockedWidth()
public int getDockedHeight()
public int getAutohideWidth()
public int getAutohideHeight()
public void setUndockedBounds(Rectangle bounds)
bounds
- new boundspublic Rectangle getUndockedBounds()
public int getDockID()
Dockable
public void setDockID(int id)
Dockable
id
- new idpublic void resetDockID()
Dockable
public DockableFrame getSelectedFrame()
public DockableFrame getFrame(int index)
public int getFrameIndex(DockableFrame frame)
public void setHiddenPreviousState(com.jidesoft.docking.PreviousState state)
public com.jidesoft.docking.PreviousState getHiddenPreviousState()
public void setDockPreviousState(com.jidesoft.docking.PreviousState state)
public com.jidesoft.docking.PreviousState getDockPreviousState()
public void setFloatPreviousState(com.jidesoft.docking.PreviousState state)
public com.jidesoft.docking.PreviousState getFloatPreviousState()
public void setAutohidePreviousState(com.jidesoft.docking.PreviousState state)
public com.jidesoft.docking.PreviousState getAutohidePreviousState()
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
evt
- A PropertyChangeEvent object describing the event source and the property that has changed.public boolean isAllFloatable()
public boolean isAllAutohidable()
public boolean isAllAutohidable(int side)
side
- the autohide side.
isAllHidable()
public boolean isAllHidable()
public boolean isTabClosableAt(int tabIndex)
isTabClosableAt
in class JideTabbedPane
tabIndex
- the tab index.
public boolean hasFocusComponent()
JideTabbedPane
hasFocusComponent
in class JideTabbedPane
public void repaintTabAreaAndContentBorder()
JideTabbedPane
repaintTabAreaAndContentBorder
in class JideTabbedPane
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |