|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.sqlbuilder.model.WindowStateInfo
public class WindowStateInfo
Defines the UI state of a window's controls.
Field Summary | |
---|---|
static java.lang.String |
CURRENT_VERSION
|
Constructor Summary | |
---|---|
WindowStateInfo()
Constructor for WindowStateInfo |
Method Summary | |
---|---|
static IWindowStateInfo |
decode(java.lang.String code)
Decodes a WindowStateInfo from an encoded String. |
java.lang.String |
encode()
Encodes the given IWindowStateInfo object for persistence. |
IControlStateInfo |
get(int controlType)
Gets the control state information of the specified control type. |
IControlStateInfo[] |
getcontrolStateInfos()
Gets array of all the IControlStateInfo s contained in this
IWindowStateInfo |
int |
getHeight()
Returns the overall height of the SQL Query Builder main control. |
java.lang.String |
getVersion()
Returns the version of this window state information. |
int |
getWidth()
Returns the overall width of the SQL Query Builder main control. |
void |
put(int controlType,
IControlStateInfo controlStateInfo)
Stores the control state information for the specified control type. |
void |
remove(int controlType)
Revoves the control state information for the specified control type. |
void |
setHeight(int height)
Sets the overall height of the SQL Query Builder main control. |
void |
setVersion(java.lang.String version)
Sets the version of this window state information. |
void |
setWidth(int width)
Sets the overall width of the SQL Query Builder main control. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CURRENT_VERSION
Constructor Detail |
---|
public WindowStateInfo()
Method Detail |
---|
public IControlStateInfo get(int controlType)
IWindowStateInfo
get
in interface IWindowStateInfo
controlType
- An IControlStateInfo.*_CONTROL constant defined for
one of the section controls, for example, IControlStateInfo.SOURCE_CONTROL
.
IControlStateInfo
public void put(int controlType, IControlStateInfo controlStateInfo)
IWindowStateInfo
put
in interface IWindowStateInfo
controlType
- An IControlStateInfo.*_CONTROL constant defined for
one of the section controls, for example, IControlStateInfo.SOURCE_CONTROL
.controlStateInfo
- an IControlStateInfo instance that represents the state
of the specified control type.IControlStateInfo
public void remove(int controlType)
IWindowStateInfo
remove
in interface IWindowStateInfo
controlType
- An IControlStateInfo.*_CONTROL constant defined for
one of the section controls, for example, IControlStateInfo.SOURCE_CONTROL
.IControlStateInfo
public IControlStateInfo[] getcontrolStateInfos()
IWindowStateInfo
IControlStateInfo
s contained in this
IWindowStateInfo
getcontrolStateInfos
in interface IWindowStateInfo
IControlStateInfo
public java.lang.String getVersion()
IWindowStateInfo
getVersion
in interface IWindowStateInfo
public void setVersion(java.lang.String version)
IWindowStateInfo
setVersion
in interface IWindowStateInfo
version
- version defined by an IWindowStateInfo implementationpublic int getHeight()
IWindowStateInfo
getHeight
in interface IWindowStateInfo
IControlStateInfo.CONTROL_STATE_UNKNOWN_VALUE
if value is not known.public void setHeight(int height)
IWindowStateInfo
setHeight
in interface IWindowStateInfo
public int getWidth()
IWindowStateInfo
getWidth
in interface IWindowStateInfo
IControlStateInfo.CONTROL_STATE_UNKNOWN_VALUE
if value is not known.public void setWidth(int width)
IWindowStateInfo
setWidth
in interface IWindowStateInfo
public java.lang.String encode()
IWindowStateInfo
IWindowStateInfo
object for persistence.
encode
in interface IWindowStateInfo
decode(String)
public static IWindowStateInfo decode(java.lang.String code)
WindowStateInfo
from an encoded String. The string should
be a serialized XMLMemento
for the WindowStateInfo
.
code
- encoded WindowStateInfo
object.
WindowStateInfo
objectencode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |