|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.core.MiPart
com.swfm.mica.core.MiContainer
com.swfm.mica.layouts.MiLayout
com.swfm.mica.core.MiVisibleContainer
com.swfm.mica.widgets.MiWidget
com.swfm.mica.widgets.MiSash
This class draws a sash.
| Field Summary | |
static java.lang.String |
Mi_INVISIBLE_SASH_STYLE
|
static java.lang.String |
Mi_SASH_PROTOTYPE_CLASS_NAME
|
static java.lang.String |
Mi_STANDARD_SASH_STYLE
|
| Constructor Summary | |
MiSash()
Constructs a new MiSash without a label. |
|
MiSash(int orientation)
Constructs a new MiSash that controls the sizes of the 2 parts it lies between in its container |
|
MiSash(MiPart firstPart,
MiPart secondPart,
int orientation)
Constructs a new MiSash that controls the sizes of the 2 given parts |
|
MiSash(MiPart firstPart,
MiPart secondPart,
int orientation,
java.lang.String style)
|
|
MiSash(MiPart overallContainer,
MiPart firstPart,
MiPart secondPart,
int orientation,
java.lang.String style)
|
|
MiSash(java.lang.String style)
|
|
| Method Summary | |
void |
copy(MiPart source)
Copy the state of this MiPart into the target MiPart. |
static MiSash |
create()
Creates a new widget from the prototype. |
int |
drag(MiEvent event)
|
int |
drop(MiEvent event)
|
boolean |
getAnimateChanges()
|
boolean |
getMaximizeMaximizesFirstPart()
|
static MiSash |
getPrototype()
Gets the prototype that is to be copied when the #create method is called and to have it's attributes and handlers copied whenever any widget of this type is created. |
int |
getSashPreferredWidth()
|
java.lang.String |
getValue()
Get the value of this widget, which is the label. |
void |
init()
|
void |
maximize(boolean maximizeFirstPart)
|
int |
pickup(MiEvent event)
|
void |
setAnimateChanges(boolean flag)
|
void |
setMaximizeMaximizesFirstPart(boolean flag)
default = true |
static void |
setPrototype(MiSash p)
Sets the prototype that is to be copied when the #create method is called and to have it's attributes and handlers copied whenever any widget of this type is created. |
void |
setSashPreferredWidth(int width)
|
void |
setValue(java.lang.String value)
Set the value of this widget, which is the percentage visible, 0 is default, -1 is all of 'second' part visible, 1 is all of first part visible. |
void |
toggleMaximizeRestore()
|
java.lang.String |
toString()
Return a textual description of this class. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.swfm.mica.layouts.MiiLayout |
getMinimumSize, getPreferredSize, invalidateLayout |
| Field Detail |
public static final java.lang.String Mi_SASH_PROTOTYPE_CLASS_NAME
public static final java.lang.String Mi_STANDARD_SASH_STYLE
public static final java.lang.String Mi_INVISIBLE_SASH_STYLE
| Constructor Detail |
public MiSash()
public MiSash(int orientation)
orientation - Mi_HORIZONTAL implies sash is horizontal,
Mi_NONE is determined by parent container's layout
Mi_VERTICAL implies sash is verticalpublic MiSash(java.lang.String style)
public MiSash(MiPart firstPart,
MiPart secondPart,
int orientation)
public MiSash(MiPart firstPart,
MiPart secondPart,
int orientation,
java.lang.String style)
public MiSash(MiPart overallContainer,
MiPart firstPart,
MiPart secondPart,
int orientation,
java.lang.String style)
| Method Detail |
public static MiSash create()
setPrototype(com.swfm.mica.widgets.MiSash)public void setSashPreferredWidth(int width)
public int getSashPreferredWidth()
public void setAnimateChanges(boolean flag)
public boolean getAnimateChanges()
public void setMaximizeMaximizesFirstPart(boolean flag)
public boolean getMaximizeMaximizesFirstPart()
public void setValue(java.lang.String value)
setValue in class MiWidgetvalue - the new valuepublic java.lang.String getValue()
getValue in class MiWidgetpublic void init()
public void copy(MiPart source)
copy in class MiWidgetMiPart.copy()public java.lang.String toString()
toString in class MiLayoutpublic static void setPrototype(MiSash p)
p - the new prototypegetPrototype(),
create(),
MiPart.copy()public static MiSash getPrototype()
setPrototype(com.swfm.mica.widgets.MiSash),
create(),
MiPart.copy()public int pickup(MiEvent event)
pickup in interface MiiDraggablepublic int drag(MiEvent event)
drag in interface MiiDraggablepublic int drop(MiEvent event)
drop in interface MiiDraggablepublic void toggleMaximizeRestore()
public void maximize(boolean maximizeFirstPart)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||