|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FloatingTypeDescriptor
This interface is used to modify the behaviours of FLOATING and FLOATING_FREE type.
ToolWindowType.FLOATING,
ToolWindowType.FLOATING_FREE| Method Summary | |
|---|---|
Point |
getLocation()
Gets the location of the window in the form of a point specifying the component's top-left corner. |
Dimension |
getSize()
Returns the size of the window in the form of a Dimension object. |
int |
getTransparentDelay()
Returns the transparent delay. |
float |
getTransparentRatio()
Returns the transparent ratio. |
boolean |
isAddToTaskBar()
Returns the property value of "addToTaskBarWhenDetached". |
boolean |
isAlwaysOnTop()
Returns the value of the alwaysOnTop property. |
boolean |
isModal()
Indicates whether the window used by FLOATING and FLOATING_FREE type is modal. |
boolean |
isOsDecorated()
Returns true if the OS decoration is used, false otherwise. |
boolean |
isResizable()
Returns whether the floatingwindow is resizable by user mouse actions. |
boolean |
isTransparentMode()
Returns the transparent mode. |
void |
setAddToTaskBar(boolean addToTaskBar)
When it sets to true then when the toolwindow is in flaoting mode a button is added to the task bar of your operating system. |
void |
setAlwaysOnTop(boolean alwaysOnTop)
Changes the alwaysOnTop property value used for a floating toolwindow. |
void |
setLocation(int x,
int y)
Sets the window location. |
void |
setModal(boolean modal)
Specifies whether the window used by FLOATING and FLOATING_FREE type should be modal. |
void |
setOsDecorated(boolean osDecorated)
Enables or disable the OS decoration. |
void |
setResizable(boolean resizable)
When true, the floating window is not resizable by user mouse actions. |
void |
setSize(int width,
int height)
Sets the window size. |
void |
setTransparentDelay(int transparentDelay)
Sets the transparent delay. |
void |
setTransparentMode(boolean transparentMode)
Sets the transparent mode. |
void |
setTransparentRatio(float transparentRatio)
Sets the transparent ratio. |
| Methods inherited from interface org.noos.xing.mydoggy.Observable |
|---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
| Method Detail |
|---|
void setLocation(int x,
int y)
x and y
parameters in the system coordinate space.
x - the x-coordinate of the new location's
top-left corner in the system's coordinate spacey - the y-coordinate of the new location's
top-left corner in the system's coordinate spacegetLocation()Point getLocation()
Point representing the top-left corner of the component's bounds in
the system coordinate space.setLocation(int, int)
void setSize(int width,
int height)
width - the new width of this component in pixelsheight - the new height of this component in pixelsgetSize()Dimension getSize()
Dimension object. The height
field of the Dimension object contains
this window's height, and the width
field of the Dimension object contains
this window's width.
Dimension object that indicates the
size of this window.setSize(int, int)void setModal(boolean modal)
FLOATING and FLOATING_FREE type should be modal.
modal - true to make the window modal;
false otherwise.isModal()boolean isModal()
FLOATING and FLOATING_FREE type is modal.
When a modal window is made visible, user input will be
blocked to the other windows in the application.
true if this window is modal;
false otherwise.setModal(boolean)void setTransparentMode(boolean transparentMode)
FLOATING and FLOATING_FREE type losts
the focus it becomes transparent. This facility is os-dependent.
transparentMode - true to enable trasparent mode;
false to disable transparent mode.isTransparentMode(),
setTransparentRatio(float)boolean isTransparentMode()
true if the trasparent mode is enabled;
false otherwise.setTransparentMode(boolean)void setTransparentRatio(float transparentRatio)
transparentRatio - the transparent ratio.float getTransparentRatio()
void setTransparentDelay(int transparentDelay)
transparentDelay - the transparent delayint getTransparentDelay()
void setAddToTaskBar(boolean addToTaskBar)
addToTaskBar - true if to the toolwindow is associated a button
into the task bar when it is in floating mode, false otherwise.boolean isAddToTaskBar()
void setAlwaysOnTop(boolean alwaysOnTop)
alwaysOnTop - new value of always-on-top state of the window.boolean isAlwaysOnTop()
true, if the floating toolwindow is in always-on-top state,
false otherwisesetAlwaysOnTop(boolean)void setOsDecorated(boolean osDecorated)
osDecorated - true to enabled the OS decoration, false otherwise.boolean isOsDecorated()
void setResizable(boolean resizable)
resizable - whether user resize is allowedboolean isResizable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||