org.jclarion.clarion
Class AbstractTarget

java.lang.Object
  extended by org.jclarion.clarion.PropertyObject
      extended by org.jclarion.clarion.AbstractTarget
Direct Known Subclasses:
AbstractWindowTarget, ClarionReport

public abstract class AbstractTarget
extends PropertyObject

Model property target - a window, application or report

Author:
barney

Constructor Summary
AbstractTarget()
           
 
Method Summary
 AbstractControl add(AbstractControl child)
          Add a control - a string, textbox, line etc
 AbstractControl getControl(ClarionNumber control)
          Return given control object knowing its control number
 AbstractControl getControl(int control)
          Return a given control object knowing its control number
 java.util.Collection<AbstractControl> getControls()
           
 int getLastID()
           
 PropertyObject getParentPropertyObject()
           
 ClarionObject getProperty(ClarionObject key, ClarionObject index)
          Retrieve property setting.
 int register(AbstractControl control)
          Register a control and return a use integer number.
 int register(AbstractControl control, int value)
          Register a control but force use number to a specific value
 int register(AbstractControl control, java.lang.String val)
           
 void remove(AbstractControl ac)
           
 
Methods inherited from class org.jclarion.clarion.PropertyObject
addListener, canNotifyLocalChange, clearMetaData, debugMetaData, debugMetaData, getDebugMetaData, getDebugMetaData, getId, getInheritedProperty, getLocalProperty, getProperty, getProperty, getProperty, getPropertyOrDefault, getRawProperty, getRawProperty, getSetProperties, isProperty, isSettable, notifyLocalChange, reMap, removeAllListeners, removeListener, setClonedProperty, setClonedProperty, setClonedProperty, setClonedProperty, setClonedProperty, setId, setProperty, setProperty, setProperty, setProperty, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractTarget

public AbstractTarget()
Method Detail

add

public AbstractControl add(AbstractControl child)
Add a control - a string, textbox, line etc

Parameters:
child -
Returns:

remove

public void remove(AbstractControl ac)

getControls

public java.util.Collection<AbstractControl> getControls()

register

public int register(AbstractControl control)
Register a control and return a use integer number. Use numbers are how clarion models tracking of control entities.

Parameters:
control -
Returns:

register

public int register(AbstractControl control,
                    java.lang.String val)

getLastID

public int getLastID()

getControl

public AbstractControl getControl(int control)
Return a given control object knowing its control number

Parameters:
control -
Returns:

getControl

public AbstractControl getControl(ClarionNumber control)
Return given control object knowing its control number

Parameters:
control -
Returns:

register

public int register(AbstractControl control,
                    int value)
Register a control but force use number to a specific value

Parameters:
control -
value -
Returns:

getParentPropertyObject

public PropertyObject getParentPropertyObject()
Specified by:
getParentPropertyObject in class PropertyObject

getProperty

public ClarionObject getProperty(ClarionObject key,
                                 ClarionObject index)
Description copied from class: PropertyObject
Retrieve property setting. i.e. PROP:Font,1

Overrides:
getProperty in class PropertyObject
Returns:


Copyright © 2010. All Rights Reserved.