org.jclarion.clarion
Class ClarionWindow

java.lang.Object
  extended by org.jclarion.clarion.PropertyObject
      extended by org.jclarion.clarion.AbstractTarget
          extended by org.jclarion.clarion.AbstractWindowTarget
              extended by org.jclarion.clarion.ClarionWindow
All Implemented Interfaces:
AbstractAWTPropertyGetter
Direct Known Subclasses:
ClarionApplication

public class ClarionWindow
extends AbstractWindowTarget
implements AbstractAWTPropertyGetter

Model clarion window

Author:
barney

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jclarion.clarion.AbstractWindowTarget
AbstractWindowTarget.StatusBar
 
Field Summary
 
Fields inherited from class org.jclarion.clarion.AbstractWindowTarget
suppressWindowSizingEvents
 
Constructor Summary
ClarionWindow()
           
 
Method Summary
protected  boolean canNotifyLocalChange(int indx)
           
 void close()
          Close window
 ClarionObject getAWTProperty(int index)
           
 ClarionObject getLocalProperty(int index)
           
protected  void notifyLocalChange(int indx, ClarionObject value)
           
 void open()
          Open window
 void open(ClarionWindow parent)
          Open window in context of another window
 ClarionWindow setAlrt(int value)
           
 ClarionWindow setAt(java.lang.Integer x, java.lang.Integer y, java.lang.Integer width, java.lang.Integer height)
          Set window position
 ClarionWindow setCenter()
          Locate window in center of realestate
 ClarionWindow setCentered()
          Window wallpaper is centered
 ClarionWindow setColor(java.lang.Integer back, java.lang.Integer selectFor, java.lang.Integer selectBack)
          Set default color
 ClarionWindow setDouble()
          Set double window frame style
 ClarionWindow setFont(java.lang.String typeface, java.lang.Integer size, java.lang.Integer color, java.lang.Integer style, java.lang.Integer charset)
          Set default window font
 ClarionWindow setGray()
          Set window style/color - grey
 ClarionWindow setHelp(java.lang.String help)
          Set help option when F1/help is selected
 ClarionWindow setHVScroll()
          Window is scrollable - horiz and vert
 ClarionWindow setIcon(java.lang.String text)
          Set window icon
 ClarionWindow setImmediate()
          Generated events on resizing.
 ClarionWindow setMask()
           
 ClarionWindow setMax()
          Window has maximise button on top right
 ClarionWindow setMaximize()
          Set window to be maximised
 ClarionWindow setMDI()
          Indicate that window is a child in a MDI style application
 ClarionWindow setModal()
          Window is application model
 ClarionWindow setNoFrame()
          Window has no frame
 ClarionWindow setResize()
          Indicate window is resizable
 ClarionWindow setStatus(int... status)
           
 ClarionWindow setSystem()
          Set system window top left on window
 ClarionWindow setText(java.lang.String text)
          Set window header
 ClarionWindow setTiled()
          Indicate window is to tile in realestate
 ClarionWindow setTimer(int timer)
          Set window timer event.
 ClarionWindow setToolbox()
          Window style is toolbox style
 ClarionWindow setVScroll()
          Indicate window is scrollable - vertical only
 
Methods inherited from class org.jclarion.clarion.AbstractWindowTarget
accept, add, addAcceptTask, addAcceptTask, addAlert, clearAlerts, clearAllEvents, clearMetaData, consumeAccept, consumePendingEvent, debugMetaData, deregisterEvent, doSetStatus, getAcceptAllIterator, getAcceptedEvent, getActiveState, getAlerts, getAnonymousTasks, getClarionThread, getContentPane, getCurrentFocus, getEvents, getFontHeight, getFontWidth, getHoldingFrame, getInitialSelectControl, getInsets, getKeyChar, getKeyCode, getKeyedTasks, getKeyState, getMnemonic, getMnemonicConfig, getNextEvent, getOpenMonitor, getPendingEvent, getProperty, getRefocus, getRegisteredEvents, getRootPane, getShadow, getStatus, getStatus, getStatusPane, getWindow, hasTasksPending, heightDialogToPixels, heightPixelsToDialog, isAcceptAll, isActive, isAlertKey, isPurgable, isSettable, isSuppressWindowSizingEvents, noteFullRepaint, post, post, post, purgeEvents, registerEvent, runAcceptTasks, setAcceptAll, setAcceptAllIterator, setAcceptedEvent, setActive, setActiveState, setAlerts, setAnonymousTasks, setClarionThread, setContentPane, setCurrentFocus, setEvents, setFontDimensions, setFontHeight, setFontWidth, setHoldingFrame, setInitialSelectControl, setInsets, setKeyChar, setKeyCode, setKeyedTasks, setKeyState, setMnemonicConfig, setOpenMonitor, setProperty, setRefocus, setRegisteredEvents, setRootPane, setShadow, setStatusPane, setSuppressWindowSizingEvents, setWindow, toString, waitForActiveState, waitForEvent, waitForSpecificEvent, widthDialogToPixels, widthPixelsToDialog
 
Methods inherited from class org.jclarion.clarion.AbstractTarget
getControl, getControl, getControls, getLastID, getParentPropertyObject, register, register, register, remove
 
Methods inherited from class org.jclarion.clarion.PropertyObject
addListener, debugMetaData, getDebugMetaData, getDebugMetaData, getId, getInheritedProperty, getProperty, getProperty, getProperty, getPropertyOrDefault, getRawProperty, getRawProperty, getSetProperties, isProperty, reMap, removeAllListeners, removeListener, setClonedProperty, setClonedProperty, setClonedProperty, setClonedProperty, setClonedProperty, setId, setProperty, setProperty, setProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClarionWindow

public ClarionWindow()
Method Detail

setSystem

public ClarionWindow setSystem()
Set system window top left on window

Returns:

setAlrt

public ClarionWindow setAlrt(int value)

setCentered

public ClarionWindow setCentered()
Window wallpaper is centered

Returns:

setMaximize

public ClarionWindow setMaximize()
Set window to be maximised

Returns:

setToolbox

public ClarionWindow setToolbox()
Window style is toolbox style

Returns:

setStatus

public ClarionWindow setStatus(int... status)

setGray

public ClarionWindow setGray()
Set window style/color - grey

Returns:

setHelp

public ClarionWindow setHelp(java.lang.String help)
Set help option when F1/help is selected

Parameters:
help -
Returns:

setTiled

public ClarionWindow setTiled()
Indicate window is to tile in realestate

Returns:

setNoFrame

public ClarionWindow setNoFrame()
Window has no frame

Returns:

setMDI

public ClarionWindow setMDI()
Indicate that window is a child in a MDI style application

Returns:

setCenter

public ClarionWindow setCenter()
Locate window in center of realestate

Returns:

setTimer

public ClarionWindow setTimer(int timer)
Set window timer event. in 100s of a second

Parameters:
timer -
Returns:

setAt

public ClarionWindow setAt(java.lang.Integer x,
                           java.lang.Integer y,
                           java.lang.Integer width,
                           java.lang.Integer height)
Set window position

Parameters:
x -
w -
width -
height -
Returns:

setFont

public ClarionWindow setFont(java.lang.String typeface,
                             java.lang.Integer size,
                             java.lang.Integer color,
                             java.lang.Integer style,
                             java.lang.Integer charset)
Set default window font

Parameters:
typeface -
size -
color -
style -
charset -
Returns:

setColor

public ClarionWindow setColor(java.lang.Integer back,
                              java.lang.Integer selectFor,
                              java.lang.Integer selectBack)
Set default color

Parameters:
back -
selectFor -
selectBack -
Returns:

setDouble

public ClarionWindow setDouble()
Set double window frame style

Returns:

setVScroll

public ClarionWindow setVScroll()
Indicate window is scrollable - vertical only

Returns:

setResize

public ClarionWindow setResize()
Indicate window is resizable

Returns:

setImmediate

public ClarionWindow setImmediate()
Generated events on resizing. Move - window moved Size - window sized restore - window restored maximise - window maximised iconize - window iconized

Returns:

setMask

public ClarionWindow setMask()

setHVScroll

public ClarionWindow setHVScroll()
Window is scrollable - horiz and vert

Returns:

setMax

public ClarionWindow setMax()
Window has maximise button on top right

Returns:

setModal

public ClarionWindow setModal()
Window is application model

Returns:

setText

public ClarionWindow setText(java.lang.String text)
Set window header

Parameters:
text -
Returns:

setIcon

public ClarionWindow setIcon(java.lang.String text)
Set window icon

Parameters:
text -
Returns:

open

public void open()
Open window


open

public void open(ClarionWindow parent)
Open window in context of another window

Parameters:
parent -

close

public void close()
Close window


getAWTProperty

public ClarionObject getAWTProperty(int index)
Specified by:
getAWTProperty in interface AbstractAWTPropertyGetter

getLocalProperty

public ClarionObject getLocalProperty(int index)
Overrides:
getLocalProperty in class PropertyObject

canNotifyLocalChange

protected boolean canNotifyLocalChange(int indx)
Overrides:
canNotifyLocalChange in class PropertyObject

notifyLocalChange

protected void notifyLocalChange(int indx,
                                 ClarionObject value)
Overrides:
notifyLocalChange in class AbstractWindowTarget


Copyright © 2010. All Rights Reserved.