|
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.JPanel com.jidesoft.docking.Workspace
public class Workspace
Container for document windows.
Nested Class Summary |
---|
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 |
---|
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 java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
Workspace()
Default constructor. |
|
Workspace(DockingManager dockingManager)
|
Method Summary | |
---|---|
protected void |
addImpl(Component comp,
Object constraints,
int index)
|
Component |
getDefaultFocusComponent()
Gets the default focus component. |
DockingManager |
getDockingManager()
Return the DockingManager that manages the DockableHolder . |
Component |
getFocusedComponent()
Gets the last subcomponent which held focus. |
String |
getLayoutConstraint()
Gets the layout constraint of the Workspace. |
boolean |
isAcceptDockableFrame()
Checks if this workspace can accept dockable frame. |
boolean |
isAdjustOpacityOnFly()
Checks the adjustOpacityOnFly flag. |
protected void |
paintComponent(Graphics g)
|
boolean |
requestFocusInInternalWindow()
Requests that internal window receive focus. |
boolean |
requestFocusInInternalWindowNew()
|
void |
setAcceptDockableFrame(boolean acceptDockableFrame)
Sets if workspace can accept drag-n-drop dockable frame. |
void |
setAdjustOpacityOnFly(boolean adjustOpacityOnFly)
Sets the adjustOpacityOnFly flag. |
void |
setDefaultFocusComponent(Component defaultFocusComponent)
Sets the default focus component. |
void |
setDockingManager(DockingManager dockingManager)
Sets the docking manager. |
protected void |
setLastFocusedComponent(Component lastFocusedComponent)
Sets the subcomponent which currently has focus. |
void |
setLayoutConstraint(String layoutConstraint)
Sets the layout constraint of the Workspace. |
void |
updateUI()
|
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Workspace()
public Workspace(DockingManager dockingManager)
Method Detail |
---|
public boolean isAdjustOpacityOnFly()
public void setAdjustOpacityOnFly(boolean adjustOpacityOnFly)
adjustOpacityOnFly
- true or false.protected void paintComponent(Graphics g)
paintComponent
in class JComponent
public void updateUI()
updateUI
in class JPanel
public boolean isAcceptDockableFrame()
public void setAcceptDockableFrame(boolean acceptDockableFrame)
dockingManager.setEasyTabDock(true)
so that the dockable frame can be docked inside an empty
workspace when there is no existing dockable frame.
acceptDockableFrame
- true to accept dockable frame in workspace area.public boolean requestFocusInInternalWindow()
Refocusable
requestFocusInInternalWindow
in interface Refocusable
public boolean requestFocusInInternalWindowNew()
public Component getFocusedComponent()
setLastFocusedComponent
, getDefaultFocusComponent
,
setDefaultFocusComponent
getFocusedComponent
in interface Refocusable
protected void setLastFocusedComponent(Component lastFocusedComponent)
getLastFocusedComponent
, getDefaultFocusComponent
,
setDefaultFocusComponent
lastFocusedComponent
- the last-focused subcomponentpublic Component getDefaultFocusComponent()
setDefaultFocusComponent
, getLastFocusedComponent
,
setLastFocusedComponent
getDefaultFocusComponent
in interface Refocusable
public void setDefaultFocusComponent(Component defaultFocusComponent)
getDefaultFocusComponent
, getLastFocusedComponent
,
setLastFocusedComponent
setDefaultFocusComponent
in interface Refocusable
defaultFocusComponent
- the default focus component.protected void addImpl(Component comp, Object constraints, int index)
addImpl
in class Container
public void setDockingManager(DockingManager dockingManager)
dockingManager
- the docking managerpublic DockingManager getDockingManager()
DockableHolder
DockableHolder
. There is only one
Dockingmanager
allowed in each DockableHolder
.
getDockingManager
in interface DockableHolder
DockableHolder
.public String getLayoutConstraint()
public void setLayoutConstraint(String layoutConstraint)
layoutConstraint
- the layout constraint.getLayoutConstraint()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |