public class VisualState
extends java.lang.Object
In some cases, using methods on this class may result in a
JdapiIllegalStateException being thrown. When this happens, you are using
an object that refers to a Forms object that has been deleted - your
reference is no longer valid. You can check if an instance of this
class is valid by using the isValidFormsObject() method.
If you code correctly, this should not happen. It will tend to happen
if you keep references (for extended periods) to Forms objects rather
than look them up dynamically. Of course you will only have this
problem if you destroy Forms objects.
BaseAPI| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
m_clientInfo
Client info object held against this Forms object.
|
protected long |
m_pd2fob
This is the d2fob pointer in the C ifjapi60 for the object
that is derived from this class.
|
PROPERTY_DEFAULT_VALUE, PROPERTY_INHERITED_VALUE, PROPERTY_OVERRIDDEN_DEFAULT_VALUE, PROPERTY_OVERRIDDEN_INHERITED_VALUE, PROPERTY_STATE_UNKNOWN| Modifier | Constructor and Description |
|---|---|
|
VisualState(Canvas parent,
java.lang.String name)
Constructor used to create VisualState objects in the context of
a Canvas parent object.
|
|
VisualState(Canvas parent,
java.lang.String name,
PropertyClass base)
Constructor used to create VisualState objects in the context of a
Canvas parent object.
|
|
VisualState(Canvas parent,
java.lang.String name,
VisualState base)
Constructor used to create VisualState objects in the context of a
Canvas parent object.
|
protected |
VisualState(long pd2fvst)
Protected constructor, used internally to create VisualState
objects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeOwner(JdapiObject newOwner)
Assigns a new owner to the referred object.
|
protected void |
clearObjectPointer()
Used internally to flag this object as an invalid object.
|
VisualState |
clone(Canvas parent,
java.lang.String newName)
Creates a copy of the object as a child of 'parent'
|
JdapiObject |
clone(JdapiObject parent,
java.lang.String newName)
Creates a clone of the specified object, creating a new
object with the given name and owner.
|
JdapiObject |
createSubclassedChild(JdapiObject childOwner,
java.lang.String childName)
Subclass the referred object.
|
void |
destroy()
Destroys the object - this removes the object from it's context.
|
boolean |
equals(JdapiObject obj)
Compares two objects and determines if they are equal.
|
static VisualState |
find(Canvas parent,
java.lang.String name)
Find an instance of VisualState that is a child of a Canvas.
|
int |
getArrowStyle()
Get number property ArrowStyle (ARROW_STYLE_PTID).
|
java.lang.String |
getBackColor()
Get text property BackColor (BACK_COLOR_PTID).
|
boolean |
getBooleanProperty(int propertyTypeId)
Retrieves a boolean property from the referred object.
|
int |
getCapStyle()
Get number property CapStyle (CAP_STYLE_PTID).
|
int |
getCharacterCellHden()
Get number property CharacterCellHden (CHARACTER_CELL_HDEN_PTID).
|
int |
getCharacterCellHnum()
Get number property CharacterCellHnum (CHARACTER_CELL_HNUM_PTID).
|
int |
getCharacterCellVden()
Get number property CharacterCellVden (CHARACTER_CELL_VDEN_PTID).
|
int |
getCharacterCellVnum()
Get number property CharacterCellVnum (CHARACTER_CELL_VNUM_PTID).
|
JdapiIterator |
getChildObjectProperty(int propertyTypeId)
Retrieves child objects for a given property value.
|
java.lang.String |
getClassName()
Gets the class name of the object.
|
java.lang.Object |
getClientInfo()
Returns the client info object associated with this Object.
|
int |
getCornerRadiusX()
Get number property CornerRadiusX (CORNER_RADIUS_X_PTID).
|
int |
getCornerRadiusY()
Get number property CornerRadiusY (CORNER_RADIUS_Y_PTID).
|
int |
getDashStyle()
Get number property DashStyle (DASH_STYLE_PTID).
|
int |
getDisplayQuality()
Get number property DisplayQuality (DISPLAY_QUALITY_PTID).
|
int |
getDrawingHden()
Get number property DrawingHden (DRAWING_HDEN_PTID).
|
int |
getDrawingHnum()
Get number property DrawingHnum (DRAWING_HNUM_PTID).
|
int |
getDrawingWden()
Get number property DrawingWden (DRAWING_WDEN_PTID).
|
int |
getDrawingWnum()
Get number property DrawingWnum (DRAWING_WNUM_PTID).
|
java.lang.String |
getEdgeBackColor()
Get text property EdgeBackColor (EDGE_BACK_COLOR_PTID).
|
java.lang.String |
getEdgeForegroundColor()
Get text property EdgeForegroundColor (EDGE_FOREGROUND_COLOR_PTID).
|
java.lang.String |
getEdgePattern()
Get text property EdgePattern (EDGE_PATTERN_PTID).
|
int |
getEditorHeight()
Get number property EditorHeight (EDITOR_HEIGHT_PTID).
|
int |
getEditorWidth()
Get number property EditorWidth (EDITOR_WIDTH_PTID).
|
java.lang.String |
getFillPattern()
Get text property FillPattern (FILL_PATTERN_PTID).
|
java.lang.String |
getFontName()
Get text property FontName (FONT_NAME_PTID).
|
int |
getFontSize()
Get number property FontSize (FONT_SIZE_PTID).
|
int |
getFontSpacing()
Get number property FontSpacing (FONT_SPACING_PTID).
|
int |
getFontStyle()
Get number property FontStyle (FONT_STYLE_PTID).
|
int |
getFontWeight()
Get number property FontWeight (FONT_WEIGHT_PTID).
|
java.lang.String |
getForegroundColor()
Get text property ForegroundColor (FOREGROUND_COLOR_PTID).
|
int |
getFrameTitleAlign()
Get number property FrameTitleAlign (FRAME_TITLE_ALIGN_PTID).
|
int |
getFrameTitleOffset()
Get number property FrameTitleOffset (FRAME_TITLE_OFFSET_PTID).
|
int |
getFrameTitleSpacing()
Get number property FrameTitleSpacing (FRAME_TITLE_SPACING_PTID).
|
int |
getGridIntervalCnt()
Get number property GridIntervalCnt (GRID_INTERVAL_CNT_PTID).
|
int |
getGridSnapCnt()
Get number property GridSnapCnt (GRID_SNAP_CNT_PTID).
|
int |
getGridUnitCnt()
Get number property GridUnitCnt (GRID_UNIT_CNT_PTID).
|
int |
getIntegerProperty(int propertyTypeId)
Retrieves an integer property from the referred object.
|
java.lang.String |
getIntegerPropertyString(int propertyTypeId)
Gets a numeric (
long) property value's text
representation. |
int |
getInternalLineWidth()
Get number property InternalLineWidth (INTERNAL_LINE_WIDTH_PTID).
|
int |
getInternalRotationAngle()
Get number property InternalRotationAngle (INTERNAL_ROTATION_ANGLE_PTID).
|
JdapiMetaObject |
getJdapiMetaObject()
Gets the metadata object for the specified object.
|
JdapiIterator |
getMetaProperties()
Return an iterator over the meta properties in object referred.
|
JdapiObject |
getModule()
Get Module (MODULE_PTID) object property.
|
java.lang.String |
getName()
Get the Name property (NAME_PTID) of this object.
|
protected long |
getObjectPointer()
Gets the Forms API pointer for this object.
|
JdapiObject |
getObjectProperty(int propertyTypeId)
Retrieves a JdapiObject property from the referred object.
|
protected long |
getObjProp(int propertyTypeId)
Internal method used to get an object property value.
|
JdapiIterator |
getOwnedObjects()
Get the object instances owned by this particular object.
|
JdapiObject |
getOwner()
Get Owner (OWNER_PTID) object property.
|
Blob |
getPersistentClientInfoBlob()
Returns the persistent client info Blob associated with this
object.
|
java.lang.Object |
getPersistentClientInfoObject()
Returns the persistent client info Java object associated with this
object.
|
int |
getPropertyState(int propertyTypeId)
Returns the current state of the specified property.
|
java.lang.String |
getPropertyValueName(int propertyTypeId,
int val)
Gets the string representation of a given property's value.
|
java.lang.String |
getQualifiedName(boolean includeModule)
Gets a fully qualified name for the object in the format of:
MODULE.OBJECT.CHILD.CHILD...
|
int |
getRulerMajor()
Get number property RulerMajor (RULER_MAJOR_PTID).
|
int |
getRulerMinor()
Get number property RulerMinor (RULER_MINOR_PTID).
|
int |
getRulerUnit()
Get number property RulerUnit (RULER_UNIT_PTID).
|
int |
getStringIDProperty(int propertyTypeId)
Retrieves a special String ID (integer) property from the referred object.
|
java.lang.String |
getStringProperty(int propertyTypeId)
Retrieves a string property from the referred object.
|
JdapiObject |
getSubclassParent()
Get Source (SOURCE_PTID) object property, i.e.
|
int |
getTypeId()
Gets the HtmlForms object type ID.
|
int |
getWindowHeight()
Get number property WindowHeight (WINDOW_HEIGHT_PTID).
|
int |
getWindowWidth()
Get number property WindowWidth (WINDOW_WIDTH_PTID).
|
int |
getWindowXPosition()
Get number property WindowXPosition (WINDOW_X_POSITION_PTID).
|
int |
getWindowYPosition()
Get number property WindowYPosition (WINDOW_Y_POSITION_PTID).
|
int |
getZoomLevel()
Get number property ZoomLevel (ZOOM_LEVEL_PTID).
|
boolean |
hasDefaultedProperty(int propertyTypeId)
Checks if a property is set to it's default value.
|
boolean |
hasInheritedProperty(int propertyTypeId)
Checks if a property is inherited.
|
boolean |
hasOverriddenProperty(int propertyTypeId)
Determine whether the object referred has a property of
the given type id with an overridden value.
|
boolean |
hasProperty(int propertyTypeId)
Checks if the object has a given property.
|
void |
inheritProperty(int propertyTypeId)
Resets a property to it's default value (confusing name eh?).
|
boolean |
isBoundingBoxScalable()
Get boolean property BoundingBoxScalable (BOUNDING_BOX_SCALABLE_PTID).
|
boolean |
isCenterTracking()
Get boolean property CenterTracking (CENTER_TRACKING_PTID).
|
boolean |
isClosed()
Get boolean property Closed (CLOSED_PTID).
|
boolean |
isDither()
Get boolean property Dither (DITHER_PTID).
|
boolean |
isFixedBoundingBox()
Get boolean property FixedBoundingBox (FIXED_BOUNDING_BOX_PTID).
|
boolean |
isFontScaleable()
Get boolean property FontScaleable (FONT_SCALEABLE_PTID).
|
boolean |
isGridFlag()
Get boolean property GridFlag (GRID_FLAG_PTID).
|
boolean |
isGridsnapFlag()
Get boolean property GridsnapFlag (GRIDSNAP_FLAG_PTID).
|
boolean |
isPagebreakFlag()
Get boolean property PagebreakFlag (PAGEBREAK_FLAG_PTID).
|
boolean |
isPageCountSeq()
Get boolean property PageCountSeq (PAGE_COUNT_SEQ_PTID).
|
boolean |
isResizableFlag()
Get boolean property ResizableFlag (RESIZABLE_FLAG_PTID).
|
boolean |
isRulerFlag()
Get boolean property RulerFlag (RULER_FLAG_PTID).
|
boolean |
isRulerGuideFlag()
Get boolean property RulerGuideFlag (RULER_GUIDE_FLAG_PTID).
|
boolean |
isShowCanvas()
Get boolean property ShowCanvas (SHOW_CANVAS_PTID).
|
boolean |
isShowView()
Get boolean property ShowView (SHOW_VIEW_PTID).
|
boolean |
isStatusLineFlag()
Get boolean property StatusLineFlag (STATUS_LINE_FLAG_PTID).
|
boolean |
isSubclassed()
Checks if the object is subclassed from another object.
|
boolean |
isToolpaletteFlag()
Get boolean property ToolpaletteFlag (TOOLPALETTE_FLAG_PTID).
|
boolean |
isValidFormsObject()
Determines whether this Java instance references a valid Forms object.
|
boolean |
isVisualStateValid()
Get boolean property VisualStateValid (VISUAL_STATE_VALID_PTID).
|
boolean |
isWrapText()
Get boolean property WrapText (WRAP_TEXT_PTID).
|
void |
move(JdapiObject next)
Reorders an object with respect to its siblings in
the collection it belongs to.
|
int |
queryType()
Returns the FormAPI object type ID (x_OTID in
JdapiTypes). |
void |
reattach()
Reattaches subclassed object.
|
void |
setArrowStyle(int value)
Sets number property ArrowStyle (ARROW_STYLE_PTID).
|
void |
setBackColor(java.lang.String value)
Sets text property BackColor (BACK_COLOR_PTID).
|
void |
setBooleanProperty(int propertyTypeId,
boolean propertyValue)
Sets the value of the specified boolean property belonging to the referred object.
|
void |
setBoundingBoxScalable(boolean value)
Sets boolean property BoundingBoxScalable (BOUNDING_BOX_SCALABLE_PTID).
|
void |
setCapStyle(int value)
Sets number property CapStyle (CAP_STYLE_PTID).
|
void |
setCenterTracking(boolean value)
Sets boolean property CenterTracking (CENTER_TRACKING_PTID).
|
void |
setCharacterCellHden(int value)
Sets number property CharacterCellHden (CHARACTER_CELL_HDEN_PTID).
|
void |
setCharacterCellHnum(int value)
Sets number property CharacterCellHnum (CHARACTER_CELL_HNUM_PTID).
|
void |
setCharacterCellVden(int value)
Sets number property CharacterCellVden (CHARACTER_CELL_VDEN_PTID).
|
void |
setCharacterCellVnum(int value)
Sets number property CharacterCellVnum (CHARACTER_CELL_VNUM_PTID).
|
void |
setClientInfo(java.lang.Object clientInfo)
Sets the client information.
|
void |
setClosed(boolean value)
Sets boolean property Closed (CLOSED_PTID).
|
void |
setCornerRadiusX(int value)
Sets number property CornerRadiusX (CORNER_RADIUS_X_PTID).
|
void |
setCornerRadiusY(int value)
Sets number property CornerRadiusY (CORNER_RADIUS_Y_PTID).
|
void |
setDashStyle(int value)
Sets number property DashStyle (DASH_STYLE_PTID).
|
void |
setDisplayQuality(int value)
Sets number property DisplayQuality (DISPLAY_QUALITY_PTID).
|
void |
setDither(boolean value)
Sets boolean property Dither (DITHER_PTID).
|
void |
setDrawingHden(int value)
Sets number property DrawingHden (DRAWING_HDEN_PTID).
|
void |
setDrawingHnum(int value)
Sets number property DrawingHnum (DRAWING_HNUM_PTID).
|
void |
setDrawingWden(int value)
Sets number property DrawingWden (DRAWING_WDEN_PTID).
|
void |
setDrawingWnum(int value)
Sets number property DrawingWnum (DRAWING_WNUM_PTID).
|
void |
setEdgeBackColor(java.lang.String value)
Sets text property EdgeBackColor (EDGE_BACK_COLOR_PTID).
|
void |
setEdgeForegroundColor(java.lang.String value)
Sets text property EdgeForegroundColor (EDGE_FOREGROUND_COLOR_PTID).
|
void |
setEdgePattern(java.lang.String value)
Sets text property EdgePattern (EDGE_PATTERN_PTID).
|
void |
setEditorHeight(int value)
Sets number property EditorHeight (EDITOR_HEIGHT_PTID).
|
void |
setEditorWidth(int value)
Sets number property EditorWidth (EDITOR_WIDTH_PTID).
|
void |
setFillPattern(java.lang.String value)
Sets text property FillPattern (FILL_PATTERN_PTID).
|
void |
setFixedBoundingBox(boolean value)
Sets boolean property FixedBoundingBox (FIXED_BOUNDING_BOX_PTID).
|
void |
setFontName(java.lang.String value)
Sets text property FontName (FONT_NAME_PTID).
|
void |
setFontScaleable(boolean value)
Sets boolean property FontScaleable (FONT_SCALEABLE_PTID).
|
void |
setFontSize(int value)
Sets number property FontSize (FONT_SIZE_PTID).
|
void |
setFontSpacing(int value)
Sets number property FontSpacing (FONT_SPACING_PTID).
|
void |
setFontStyle(int value)
Sets number property FontStyle (FONT_STYLE_PTID).
|
void |
setFontWeight(int value)
Sets number property FontWeight (FONT_WEIGHT_PTID).
|
void |
setForegroundColor(java.lang.String value)
Sets text property ForegroundColor (FOREGROUND_COLOR_PTID).
|
void |
setFrameTitleAlign(int value)
Sets number property FrameTitleAlign (FRAME_TITLE_ALIGN_PTID).
|
void |
setFrameTitleOffset(int value)
Sets number property FrameTitleOffset (FRAME_TITLE_OFFSET_PTID).
|
void |
setFrameTitleSpacing(int value)
Sets number property FrameTitleSpacing (FRAME_TITLE_SPACING_PTID).
|
void |
setGridFlag(boolean value)
Sets boolean property GridFlag (GRID_FLAG_PTID).
|
void |
setGridIntervalCnt(int value)
Sets number property GridIntervalCnt (GRID_INTERVAL_CNT_PTID).
|
void |
setGridSnapCnt(int value)
Sets number property GridSnapCnt (GRID_SNAP_CNT_PTID).
|
void |
setGridsnapFlag(boolean value)
Sets boolean property GridsnapFlag (GRIDSNAP_FLAG_PTID).
|
void |
setGridUnitCnt(int value)
Sets number property GridUnitCnt (GRID_UNIT_CNT_PTID).
|
void |
setIntegerProperty(int propertyTypeId,
int propertyValue)
Sets the value of the specified object integer property.
|
void |
setInternalLineWidth(int value)
Sets number property InternalLineWidth (INTERNAL_LINE_WIDTH_PTID).
|
void |
setInternalRotationAngle(int value)
Sets number property InternalRotationAngle (INTERNAL_ROTATION_ANGLE_PTID).
|
void |
setObjectProperty(int propertyTypeId,
JdapiObject propertyValue)
Sets the value of the specified object object property value.
|
protected void |
setObjProp(int propertyTypeId,
long val)
Internal method used to set an object property.
|
void |
setPagebreakFlag(boolean value)
Sets boolean property PagebreakFlag (PAGEBREAK_FLAG_PTID).
|
void |
setPageCountSeq(boolean value)
Sets boolean property PageCountSeq (PAGE_COUNT_SEQ_PTID).
|
void |
setPersistentClientInfo(Blob val)
Sets persistent client info for this object.
|
void |
setPersistentClientInfo(java.io.Serializable obj)
Serializes any Java object which supports the Serializable
interface to this object's Persistent Client Info.
|
void |
setResizableFlag(boolean value)
Sets boolean property ResizableFlag (RESIZABLE_FLAG_PTID).
|
void |
setRulerFlag(boolean value)
Sets boolean property RulerFlag (RULER_FLAG_PTID).
|
void |
setRulerGuideFlag(boolean value)
Sets boolean property RulerGuideFlag (RULER_GUIDE_FLAG_PTID).
|
void |
setRulerMajor(int value)
Sets number property RulerMajor (RULER_MAJOR_PTID).
|
void |
setRulerMinor(int value)
Sets number property RulerMinor (RULER_MINOR_PTID).
|
void |
setRulerUnit(int value)
Sets number property RulerUnit (RULER_UNIT_PTID).
|
void |
setShowCanvas(boolean value)
Sets boolean property ShowCanvas (SHOW_CANVAS_PTID).
|
void |
setShowView(boolean value)
Sets boolean property ShowView (SHOW_VIEW_PTID).
|
void |
setStatusLineFlag(boolean value)
Sets boolean property StatusLineFlag (STATUS_LINE_FLAG_PTID).
|
void |
setStringProperty(int propertyTypeId,
java.lang.String propertyValue)
Sets the value of the specified string property for the object.
|
void |
setSubclassParent(JdapiObject parent)
Change the subclassing parent of the object referred.
|
void |
setToolpaletteFlag(boolean value)
Sets boolean property ToolpaletteFlag (TOOLPALETTE_FLAG_PTID).
|
void |
setVisualStateValid(boolean value)
Sets boolean property VisualStateValid (VISUAL_STATE_VALID_PTID).
|
void |
setWindowHeight(int value)
Sets number property WindowHeight (WINDOW_HEIGHT_PTID).
|
void |
setWindowWidth(int value)
Sets number property WindowWidth (WINDOW_WIDTH_PTID).
|
void |
setWindowXPosition(int value)
Sets number property WindowXPosition (WINDOW_X_POSITION_PTID).
|
void |
setWindowYPosition(int value)
Sets number property WindowYPosition (WINDOW_Y_POSITION_PTID).
|
void |
setWrapText(boolean value)
Sets boolean property WrapText (WRAP_TEXT_PTID).
|
void |
setZoomLevel(int value)
Sets number property ZoomLevel (ZOOM_LEVEL_PTID).
|
java.lang.String |
toString()
Converts and returns the object properties to string format.
|
void |
unsetSubclassParent()
Remove the subclassing parent of the object referred.
|
protected transient long m_pd2fob
protected transient java.lang.Object m_clientInfo
public VisualState(Canvas parent, java.lang.String name)
parent - Parent objectname - Name of the new objectpublic VisualState(Canvas parent, java.lang.String name, VisualState base)
parent - Parent objectname - Name of the new objectbase - VisualState object to derive frompublic VisualState(Canvas parent, java.lang.String name, PropertyClass base)
parent - Parent objectname - Name of the new objectbase - PropertyClass object to derive fromprotected VisualState(long pd2fvst)
Do NOT use this constructor, even within the Jdapi package. If you have a pointer and need to instantiate it's Java representation, get the object via the context cache, e.g.
myBaseObject = Jdapi.getObject(myPointer);
pd2fvst - C pointer to Forms objectpublic int getTypeId()
getTypeId in interface JdapiObjectqueryTypepublic VisualState clone(Canvas parent, java.lang.String newName)
parent - Parent objectnewName - Name of object that's being createdpublic static VisualState find(Canvas parent, java.lang.String name)
parent - Parent object of object you wish to findname - Name of object you wish to findpublic java.lang.String getBackColor()
public void setBackColor(java.lang.String value)
value - Value to set property topublic java.lang.String getEdgeBackColor()
public void setEdgeBackColor(java.lang.String value)
value - Value to set property topublic java.lang.String getEdgeForegroundColor()
public void setEdgeForegroundColor(java.lang.String value)
value - Value to set property topublic java.lang.String getEdgePattern()
public void setEdgePattern(java.lang.String value)
value - Value to set property topublic java.lang.String getFillPattern()
public void setFillPattern(java.lang.String value)
value - Value to set property topublic java.lang.String getFontName()
public void setFontName(java.lang.String value)
value - Value to set property topublic java.lang.String getForegroundColor()
public void setForegroundColor(java.lang.String value)
value - Value to set property topublic int getArrowStyle()
public void setArrowStyle(int value)
value - Value to set property topublic int getCapStyle()
public void setCapStyle(int value)
value - Value to set property topublic int getCharacterCellHden()
public void setCharacterCellHden(int value)
value - Value to set property topublic int getCharacterCellHnum()
public void setCharacterCellHnum(int value)
value - Value to set property topublic int getCharacterCellVden()
public void setCharacterCellVden(int value)
value - Value to set property topublic int getCharacterCellVnum()
public void setCharacterCellVnum(int value)
value - Value to set property topublic int getCornerRadiusX()
public void setCornerRadiusX(int value)
value - Value to set property topublic int getCornerRadiusY()
public void setCornerRadiusY(int value)
value - Value to set property topublic int getDashStyle()
public void setDashStyle(int value)
value - Value to set property topublic int getDisplayQuality()
public void setDisplayQuality(int value)
value - Value to set property topublic int getDrawingHden()
public void setDrawingHden(int value)
value - Value to set property topublic int getDrawingHnum()
public void setDrawingHnum(int value)
value - Value to set property topublic int getDrawingWden()
public void setDrawingWden(int value)
value - Value to set property topublic int getDrawingWnum()
public void setDrawingWnum(int value)
value - Value to set property topublic int getEditorHeight()
public void setEditorHeight(int value)
value - Value to set property topublic int getEditorWidth()
public void setEditorWidth(int value)
value - Value to set property topublic int getFontSize()
public void setFontSize(int value)
value - Value to set property topublic int getFontSpacing()
public void setFontSpacing(int value)
value - Value to set property topublic int getFontStyle()
public void setFontStyle(int value)
value - Value to set property topublic int getFontWeight()
public void setFontWeight(int value)
value - Value to set property topublic int getFrameTitleAlign()
public void setFrameTitleAlign(int value)
value - Value to set property topublic int getFrameTitleOffset()
public void setFrameTitleOffset(int value)
value - Value to set property topublic int getFrameTitleSpacing()
public void setFrameTitleSpacing(int value)
value - Value to set property topublic int getGridIntervalCnt()
public void setGridIntervalCnt(int value)
value - Value to set property topublic int getGridSnapCnt()
public void setGridSnapCnt(int value)
value - Value to set property topublic int getGridUnitCnt()
public void setGridUnitCnt(int value)
value - Value to set property topublic int getInternalLineWidth()
public void setInternalLineWidth(int value)
value - Value to set property topublic int getInternalRotationAngle()
public void setInternalRotationAngle(int value)
value - Value to set property topublic int getRulerMajor()
public void setRulerMajor(int value)
value - Value to set property topublic int getRulerMinor()
public void setRulerMinor(int value)
value - Value to set property topublic int getRulerUnit()
public void setRulerUnit(int value)
value - Value to set property topublic int getWindowHeight()
public void setWindowHeight(int value)
value - Value to set property topublic int getWindowWidth()
public void setWindowWidth(int value)
value - Value to set property topublic int getWindowXPosition()
public void setWindowXPosition(int value)
value - Value to set property topublic int getWindowYPosition()
public void setWindowYPosition(int value)
value - Value to set property topublic int getZoomLevel()
public void setZoomLevel(int value)
value - Value to set property topublic boolean isBoundingBoxScalable()
public void setBoundingBoxScalable(boolean value)
value - Value to set property topublic boolean isCenterTracking()
public void setCenterTracking(boolean value)
value - Value to set property topublic boolean isClosed()
public void setClosed(boolean value)
value - Value to set property topublic boolean isDither()
public void setDither(boolean value)
value - Value to set property topublic boolean isFixedBoundingBox()
public void setFixedBoundingBox(boolean value)
value - Value to set property topublic boolean isFontScaleable()
public void setFontScaleable(boolean value)
value - Value to set property topublic boolean isGridFlag()
public void setGridFlag(boolean value)
value - Value to set property topublic boolean isGridsnapFlag()
public void setGridsnapFlag(boolean value)
value - Value to set property topublic boolean isPageCountSeq()
public void setPageCountSeq(boolean value)
value - Value to set property topublic boolean isPagebreakFlag()
public void setPagebreakFlag(boolean value)
value - Value to set property topublic boolean isResizableFlag()
public void setResizableFlag(boolean value)
value - Value to set property topublic boolean isRulerFlag()
public void setRulerFlag(boolean value)
value - Value to set property topublic boolean isRulerGuideFlag()
public void setRulerGuideFlag(boolean value)
value - Value to set property topublic boolean isShowCanvas()
public void setShowCanvas(boolean value)
value - Value to set property topublic boolean isShowView()
public void setShowView(boolean value)
value - Value to set property topublic boolean isStatusLineFlag()
public void setStatusLineFlag(boolean value)
value - Value to set property topublic boolean isToolpaletteFlag()
public void setToolpaletteFlag(boolean value)
value - Value to set property topublic boolean isVisualStateValid()
public void setVisualStateValid(boolean value)
value - Value to set property topublic boolean isWrapText()
public void setWrapText(boolean value)
value - Value to set property toprotected long getObjectPointer()
public int queryType()
JdapiTypes). This should always be the
same value as returned for getTypeId. The difference between the two methods is that
queryType calls down to the API itself; this ensures that the correct type
is returned. Because this method calls down to the API, you might find it
a little faster to use getTypeID instead.queryType in interface JdapiObjectJdapiTypes.public void setClientInfo(java.lang.Object clientInfo)
This client info object is not persistent and will be lost when the session ends.
setClientInfo in interface JdapiObjectclientInfo - client info to be associated with the object.public java.lang.Object getClientInfo()
setClientObject.getClientInfo in interface JdapiObjectpublic Blob getPersistentClientInfoBlob()
getPersistentClientInfoBlob in interface JdapiObjectBlob containing client info.public java.lang.Object getPersistentClientInfoObject()
getPersistentClientInfoObject in interface JdapiObjectpublic void setPersistentClientInfo(Blob val)
Like the non-persistent client info methods, the client info can be any information that you want to save with the form. Unlike the non-persistent client info methods, the persistent info is saved as part of the form and will not be lost when the session is ended.
setPersistentClientInfo in interface JdapiObjectval - a Blob object containing client info.public void setPersistentClientInfo(java.io.Serializable obj)
Like the non-persistent client info methods, the client info can be any information that you want to save with the form. Unlike the non-persistent client info methods, the persistent info is saved as part of the form and will not be lost when the session is ended.
setPersistentClientInfo in interface JdapiObjectobj - any Serializable object containing client info.public boolean equals(JdapiObject obj)
equals in interface JdapiObjectobj - object to be compared.public JdapiObject clone(JdapiObject parent, java.lang.String newName)
The new object is the same as the original object in that it has the same property values. However, subclassing information is discarded, and the inherited property values "flattened" into local values in the new object.
It is your reponsibility to pass in an appropriate parent object. If you do not do this, you will probably get a JdapiException runtime exception. If possible, use the type safe clone method that is provided on each Forms object class.
clone in interface JdapiObjectparent - owner of the new object.newName - name of the new object.public void changeOwner(JdapiObject newOwner)
Set newOwner to null if you want the object to have no owner.
The only restriction on this method is that the new owner must be in the same module
as the referred object. If you attempt to assign a new owner that is in a different
module, then a JdapiException will be thrown.
Note: If you want to assign the object to a new owner in a different module, then you will have to clone or subclass the object.
changeOwner in interface JdapiObjectnewOwner - the new owner of referred object; specify null if you want the object to have no owner.JdapiException - if newOwner is in a different
module.public java.lang.String toString()
toString in interface JdapiObjecttoString in class java.lang.Objectprotected void clearObjectPointer()
public boolean isValidFormsObject()
JdapiObject
For example, assume that you have a reference to a block.
If you call destroy() on its owning module, then the module and all of its blocks
should be deleted from memory. The reference that you have no longer
refers to a valid Forms object. A call to isValidFormsObject() on the
block should return false.
isValidFormsObject in interface JdapiObjectpublic void destroy()
destroy in interface JdapiObjectpublic void move(JdapiObject next)
Pass null to this method to move the object to the end of the list. If the specified object and the next_object do not share the same owner, or do not have the same type, the method throws an exception.
You cannot use this method to move objects between parents. For example, it cannot be used to move an Item from one Block to another. If you want to move an object from one parent to another you will have to do something like:
// e.g. to move 'itmA' to be positioned before 'itmB' in block // 'blkB' (when 'itmA' is in another block) // copy itmA into a new parent (blkB) using same name Item newItmA = itmA.clone(blkB, itmA.getName()); newItmA.move(itmB); // move new item relative to itmB itmA.destroy(); // delete original object itmA = newItmA;
move in interface JdapiObjectnext - the object next to which the specified object
is to be moved.JdapiException - if you attempt to
move an object next to an object that does not share the same owner or
is not of the samme type.public boolean getBooleanProperty(int propertyTypeId)
getBooleanProperty in interface JdapiObjectpropertyTypeId - property type ID for which a boolean value is returned.public java.lang.String getStringProperty(int propertyTypeId)
getStringProperty in interface JdapiObjectpropertyTypeId - property type ID for which a string value is returned.public int getIntegerProperty(int propertyTypeId)
...
if(propClass.hasProperty(propNumber) && propClass.allowGet(propNumber))
{
int propValue = propClass.getIntegerProperty(propNum);
}
...
getIntegerProperty in interface JdapiObjectpropertyTypeId - property type ID for which an integer value is returned.public int getStringIDProperty(int propertyTypeId)
This method is intended for use with the TranslationTable
object only. For a given property ID it retrieves the integer that indexes the string
property in the table for the current language.
getStringIDProperty in interface JdapiObjectpropertyTypeId - property type ID for which a String ID value is returned.public java.lang.String getPropertyValueName(int propertyTypeId,
int val)
JdapiObjectgetPropertyValueName in interface JdapiObjectpropertyTypeId - Property numberval - Value of propertypublic java.lang.String getIntegerPropertyString(int propertyTypeId)
JdapiObjectlong) property value's text
representation.getIntegerPropertyString in interface JdapiObjectpropertyTypeId - Number identifying the propertyprotected long getObjProp(int propertyTypeId)
ContextCache to lookup/instantiate
the Java representation of the object.propertyTypeId - Number identifying the propertyContextCache,
getObjectProperty(int)public JdapiObject getObjectProperty(int propertyTypeId)
JdapiObjectgetObjectProperty in interface JdapiObjectpropertyTypeId - property type ID for which a JdapiObject value is returned.public JdapiIterator getChildObjectProperty(int propertyTypeId)
JdapiObjectFor example:
...
// get the actual values for the current child object type,
// for example, get the Items on a Block
iter = jo.getChildObjectProperty(prop.getPropertyId());
...
Note, it should be (slightly) faster to call the specific method
on the object, for example getBlocks() on the FormModule, as it involves
fewer API calls. However, getChildObjectProperty should be sufficient if
you only have a propertyTypeId available.
This method also differs from the direct accessors in that null is returned if there are no objects, not an empty iterator.
getChildObjectProperty in interface JdapiObjectpropertyTypeId - number identifying the child object property.public void setBooleanProperty(int propertyTypeId,
boolean propertyValue)
JdapiObjectsetBooleanProperty in interface JdapiObjectpropertyTypeId - property type ID of the property for which you want to set the boolean value.propertyValue - the boolean value for the property.public void setStringProperty(int propertyTypeId,
java.lang.String propertyValue)
JdapiObjectsetStringProperty in interface JdapiObjectpropertyTypeId - property type ID of the property for which you want to set the string value.propertyValue - the string value for the property.public void setIntegerProperty(int propertyTypeId,
int propertyValue)
setIntegerProperty in interface JdapiObjectpropertyTypeId - property type id for which we set the integer value.propertyValue - the integer property value in property.protected void setObjProp(int propertyTypeId,
long val)
propertyTypeId - Number identifying the propertyval - Value to set the property tosetObjectProperty(int, oracle.forms.jdapi.JdapiObject)public void setObjectProperty(int propertyTypeId,
JdapiObject propertyValue)
setObjectProperty in interface JdapiObjectpropertyTypeId - property type id for which we set the object property value.propertyValue - the object property value in property.public boolean hasProperty(int propertyTypeId)
hasProperty in interface JdapiObjectpropertyTypeId - Number identifying the propertypublic void inheritProperty(int propertyTypeId)
inheritProperty in interface JdapiObjectpropertyTypeId - Number that identified the propertypublic boolean hasInheritedProperty(int propertyTypeId)
hasInheritedProperty in interface JdapiObjectpropertyTypeId - Number that identified the propertypublic boolean hasOverriddenProperty(int propertyTypeId)
hasOverriddenProperty in interface JdapiObjectpropertyTypeId - The type id of the property to
be queried.public boolean hasDefaultedProperty(int propertyTypeId)
hasDefaultedProperty in interface JdapiObjectpropertyTypeId - Number that identified the propertypublic int getPropertyState(int propertyTypeId)
A property can be in one of the 5 states:
PROPERTY_STATE_UNKNOWN = 0;
PROPERTY_DEFAULT_VALUE = 1;
PROPERTY_OVERRIDDEN_DEFAULT_VALUE = 2;
PROPERTY_INHERITED_VALUE = 3;
PROPERTY_OVERRIDDEN_INHERITED_VALUE = 3;
getPropertyState in interface JdapiObjectpropertyTypeId - The type id of the property.public boolean isSubclassed()
isSubclassed in interface JdapiObjectpublic JdapiObject getSubclassParent()
getSubclassParent in interface JdapiObjectpublic void setSubclassParent(JdapiObject parent)
The metadata associated with each object describes the types of objects that can become its subclassing parent. If the subclassing metadata associated with the refrred object doesn't indicate the objects of the given parent's type are allowed, then this method will throw an exception.
setSubclassParent in interface JdapiObjectparent - The parent object. If this is null, the child
the referred object will become an orphan. This is the
way to unset the subclassing parent of an object.public void unsetSubclassParent()
The subclassing will be removed completely if it existed and the object will now contain the default values.
public JdapiObject createSubclassedChild(JdapiObject childOwner, java.lang.String childName)
createSubclassedChild in interface JdapiObjectchildOwner - The object that will own
the newly created subclassed child object.childName - The name to be given to the newly
created child.public void reattach()
reattach in interface JdapiObjectpublic JdapiObject getModule()
getModule in interface JdapiObjectpublic JdapiObject getOwner()
getOwner in interface JdapiObjectpublic JdapiIterator getOwnedObjects()
getOwnedObjects in interface JdapiObjectpublic java.lang.String getName()
getName in interface JdapiObjectpublic java.lang.String getClassName()
getClassName in interface JdapiObjectpublic java.lang.String getQualifiedName(boolean includeModule)
getQualifiedName in interface JdapiObjectincludeModule - Include the module namepublic JdapiMetaObject getJdapiMetaObject()
getJdapiMetaObject in interface JdapiObjectpublic JdapiIterator getMetaProperties()
The various property type ids and the object-property mapping are defined by the specific implementation in the respective Constants file.
getMetaProperties in interface JdapiObject