|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.okapi.common.uidescription.AbstractPart
public abstract class AbstractPart
Base UI part descriptor. All other UI part descriptors are derived from this one.
| Field Summary | |
|---|---|
protected IContainerPart |
container
|
protected boolean |
enabledOnSelection
|
protected boolean |
labelFlushed
|
protected AbstractPart |
masterPart
|
protected ParameterDescriptor |
paramDescriptor
|
protected boolean |
vertical
|
protected boolean |
withLabel
|
| Constructor Summary | |
|---|---|
AbstractPart(ParameterDescriptor paramDescriptor)
Creates a new BasePart object with a given parameter description. |
|
| Method Summary | |
|---|---|
protected void |
checkType()
Checks the types supported by this UI part. |
IContainerPart |
getContainer()
Gets the container part of this part. |
java.lang.String |
getDisplayName()
Gets the localizable name of this parameter. |
AbstractPart |
getMasterPart()
Gets the master part associated with this UI part. |
java.lang.String |
getName()
Gets the programming name of this parameter. |
java.lang.Object |
getParent()
Gets the object where this parameter is instantiated. |
java.lang.reflect.Method |
getReadMethod()
Gets the method to obtain the current value of this parameter. |
java.lang.String |
getShortDescription()
Gets the short localizable description of this parameter. |
java.lang.reflect.Type |
getType()
Gets the type of this parameter. |
java.lang.reflect.Method |
getWriteMethod()
Gets the method to set a new value for this this parameter. |
boolean |
isEnabledOnSelection()
Indicates how this part is enabled in relation to its master part. |
boolean |
isLabelFlushed()
Indicates if the label of this UI part should be flushed next to the part. |
boolean |
isVertical()
Indicates if this UI part should be arranged vertically. |
boolean |
isWithLabel()
Indicates if this UI part should be displayed with a label. |
void |
setContainer(IContainerPart container)
Sets the container part for this part. |
void |
setDisplayName(java.lang.String displayName)
Sets the localizable name of this parameter. |
void |
setLabelFlushed(boolean labelFlushed)
Sets the flag indicating if the label of this UI part should be flushed next to the part. |
void |
setMasterPart(AbstractPart masterPart,
boolean enabledOnSelection)
Binds this part to a master part. |
void |
setShortDescription(java.lang.String shortDescription)
Gets the short localizable description of this parameter. |
void |
setVertical(boolean vertical)
Sets the flag indicating if this UI part should be arranged vertically. |
void |
setWithLabel(boolean withLabel)
Sets the flag indicating if this UI part should be displayed with a label. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ParameterDescriptor paramDescriptor
protected IContainerPart container
protected boolean vertical
protected boolean labelFlushed
protected boolean withLabel
protected AbstractPart masterPart
protected boolean enabledOnSelection
| Constructor Detail |
|---|
public AbstractPart(ParameterDescriptor paramDescriptor)
paramDescriptor - the parameter description for this UI part.| Method Detail |
|---|
public java.lang.String getDisplayName()
IParameterDescriptor
getDisplayName in interface IParameterDescriptorpublic java.lang.String getName()
IParameterDescriptorgetMyText and setMyText must be named myText
getName in interface IParameterDescriptorpublic java.lang.Object getParent()
IParameterDescriptor
getParent in interface IParameterDescriptorpublic java.lang.reflect.Method getReadMethod()
IParameterDescriptor
getReadMethod in interface IParameterDescriptorpublic java.lang.String getShortDescription()
IParameterDescriptor
getShortDescription in interface IParameterDescriptorpublic java.lang.reflect.Type getType()
IParameterDescriptor
getType in interface IParameterDescriptorpublic java.lang.reflect.Method getWriteMethod()
IParameterDescriptor
getWriteMethod in interface IParameterDescriptorpublic void setDisplayName(java.lang.String displayName)
IParameterDescriptor
setDisplayName in interface IParameterDescriptordisplayName - the new localizable name of this parameter.public void setShortDescription(java.lang.String shortDescription)
IParameterDescriptor
setShortDescription in interface IParameterDescriptorshortDescription - the new short localizable description of this parameter.public boolean isWithLabel()
public void setWithLabel(boolean withLabel)
withLabel - true if this UI part should be displayed with a label.public boolean isVertical()
public void setVertical(boolean vertical)
vertical - the new flag indicating if this UI part should be arranged vertically.public boolean isLabelFlushed()
public void setLabelFlushed(boolean labelFlushed)
labelFlushed - the new flag indicating if the label of this UI part should be flushed next to the part.public IContainerPart getContainer()
public void setContainer(IContainerPart container)
container - the new container part for this part.
public void setMasterPart(AbstractPart masterPart,
boolean enabledOnSelection)
masterPart - the UI part that enables or disables this part.enabledOnSelection - true if this part is enabled only when the master
part is selected, false to enable this part when the master part is not selected.public AbstractPart getMasterPart()
public boolean isEnabledOnSelection()
protected void checkType()
OkapiNotImplementedException - if this UI part does not support
the type of the parameter description it is created with.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||