|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclarion.clarion.runtime.CWin
public class CWin
| Nested Class Summary | |
|---|---|
static class |
CWin.OverrideTarget
|
| Constructor Summary | |
|---|---|
CWin()
|
|
| Method Summary | |
|---|---|
static int |
accepted()
Return control that posted accepted event |
static void |
addDefaultFonts()
|
static void |
addFont(java.lang.String name)
|
static void |
alert(int key)
setup alert notification for the specified key |
static void |
alert(int lo,
int hi)
setup alert notification for the specified key range |
static void |
aliasKey(int from,
int to)
Map one key to another |
static void |
beep()
Make default system noise |
static void |
beep(int tone)
Make specified system noise |
static void |
box(int x,
int y,
int width,
int height)
|
static void |
change(int field,
ClarionObject value)
Change Control object's value |
static int |
choice()
Get selected item in current field. |
static int |
choice(int control)
Determine selection in a control - i.e. |
static void |
clearAliasKey(int key)
Reset alias on a specified key |
static void |
clearAllAliasKeys()
Reset all aliased keys |
static void |
closeTarget(AbstractTarget t)
|
static boolean |
colorDialog(java.lang.String title,
ClarionNumber rgb,
java.lang.Integer suppress)
Popup a color chooser dialog. |
static ClarionString |
contents(int control)
Return contents, in string form for the specified control |
static int |
createControl(int id,
int type,
java.lang.Integer parent)
Create a new control object |
static int |
createControl(int id,
int type,
java.lang.Integer parent,
java.lang.Integer position)
|
static void |
disable(int field)
Disable a control |
static void |
disable(int lo,
int hi)
Disable range of controls |
static void |
display()
Update and Redraw all controls |
static void |
display(int field)
Update and Redraw specified control |
static void |
display(int lo,
int hi)
Update and Redraw specified controls |
static void |
enable(int field)
Enable a control |
static void |
enable(int low,
int hi)
Enable all controls in range |
static int |
event()
Return current event |
static java.lang.String |
eventString()
|
static java.lang.String |
eventString(int event)
|
static int |
field()
Return cntrol id of the control that generated current event |
static boolean |
fileDialog(java.lang.String title,
ClarionString target,
java.lang.String ifiles,
int options)
|
static int |
focus()
Return control id that currently has focus |
static boolean |
fontDialog(java.lang.String title,
ClarionString typeFace,
ClarionNumber size,
ClarionNumber color,
ClarionNumber style,
ClarionNumber added)
Popup a dialog that allows user to select font |
static void |
forwardKey(int control)
Pass key code to another control. |
static ClarionString |
getClipboard()
|
static PropertyObject |
getControl(ClarionObject control)
Get current control based on target setting |
static PropertyObject |
getControl(int indx)
|
static int |
getFirstField()
Return first control code in current target |
static CWinImpl |
getInstance()
|
static int |
getLastField()
Return last control code in current target |
static int |
getMouseX()
get Mouse X pos relative to ??? |
static int |
getMouseY()
get Mouse Y pos relative to ??? |
static void |
getPosition(int control,
ClarionNumber x,
ClarionNumber y,
ClarionNumber width,
ClarionNumber height)
Extract positional information for a given control and insert data into supplied fields |
static AbstractTarget |
getTarget()
Get current abstract target - report or window |
static javax.swing.filechooser.FileSystemView |
getView()
|
static AbstractWindowTarget |
getWindowTarget()
Get current abstract target - report or window |
static void |
hide(int field)
Hide a control |
static int |
keyChar()
set ASCII char value of keycode pressed |
static int |
keyCode()
Return key code generated on last event, or key code set by function setkeycode |
static int |
keyState()
Get keystate of control keys, shift, control etc |
static int |
message(ClarionString message)
Display modal message |
static int |
message(ClarionString message,
ClarionString header)
Display modal message |
static int |
message(ClarionString message,
ClarionString header,
java.lang.String icon)
Display modal message |
static int |
message(ClarionString message,
ClarionString header,
java.lang.String icon,
int button)
Display modal message |
static int |
message(ClarionString message,
ClarionString header,
java.lang.String icon,
int button,
int defButton)
Display modal message |
static int |
message(ClarionString message,
ClarionString header,
java.lang.String icon,
int button,
int defButton,
int style)
Display modal message |
static boolean |
notification(ClarionNumber code)
get notification |
static boolean |
notification(ClarionNumber code,
ClarionNumber thread)
|
static boolean |
notification(ClarionNumber code,
ClarionNumber thread,
ClarionNumber parameter)
|
static void |
notify(int code)
|
static void |
notify(int code,
int thread)
Send notify to another thread |
static void |
notify(int code,
java.lang.Integer thread,
java.lang.Integer parameter)
|
static int |
popup(java.lang.String message)
Draw a popup window |
static int |
popup(java.lang.String message,
java.lang.Integer x,
java.lang.Integer y)
|
static void |
post(int event)
Post event to current window |
static void |
post(java.lang.Integer event,
java.lang.Integer control,
java.lang.Integer window)
Post event to specific control in a specific window |
static void |
post(int event,
int control)
Post event to specific control in current window |
static void |
pressKey(int code)
Insert keycode into keyboard buffer. |
static boolean |
printerDialog(ClarionString title,
java.lang.Integer mode)
Select a printer |
static void |
register(int event,
java.lang.Runnable trigger,
int key)
Register an event listener |
static void |
removeControl(int id)
delete a control object |
static void |
removeControl(int from,
int to)
Delete control objects in specified range |
static void |
select()
Enter acceptall mode |
static void |
select(int control)
Select a control |
static void |
select(int control,
int start)
Select a control at a given start position. |
static void |
select(int control,
int start,
int end)
Select control and mark start/end range. |
static void |
select(java.lang.Object o,
int start)
Select a control at a given start position. |
static void |
setClipboard(ClarionString content)
|
static void |
setCursor()
Set mouse cursor look to default |
static void |
setCursor(java.lang.String cursor)
Set mouse cursor look |
static void |
setFileSystemView(javax.swing.filechooser.FileSystemView view)
|
static void |
setFont(int control,
java.lang.String typeface,
java.lang.Integer size,
java.lang.Integer color,
java.lang.Integer style,
java.lang.Integer charset)
Set control object font |
static void |
setKeyChar(int code)
set ASCII char value of keycode pressed |
static void |
setKeyCode(int code)
Set key code to be returned by calls to keycode |
static void |
setPosition(int control,
java.lang.Integer x,
java.lang.Integer y,
java.lang.Integer width,
java.lang.Integer height)
Set position of a control object |
static void |
setTarget()
set control target to default open target |
static void |
setTarget(AbstractTarget target)
set control target to a different abstracttarget |
static void |
unhide(int field)
Unhide a control |
static void |
unhide(int from,
int to)
Unhide all controls in specified range |
static void |
unregister(int event,
java.lang.Runnable trigger,
int key)
Deregister an event listener |
static void |
update()
Update all use fields with control values |
static void |
update(int field)
Update use field with control value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CWin()
| Method Detail |
|---|
public static CWinImpl getInstance()
public static void notify(int code,
int thread)
public static void notify(int code)
public static void notify(int code,
java.lang.Integer thread,
java.lang.Integer parameter)
public static boolean notification(ClarionNumber code)
public static boolean notification(ClarionNumber code,
ClarionNumber thread)
public static boolean notification(ClarionNumber code,
ClarionNumber thread,
ClarionNumber parameter)
public static int message(ClarionString message)
message -
public static int message(ClarionString message,
ClarionString header)
message - header -
public static int message(ClarionString message,
ClarionString header,
java.lang.String icon)
message - header - icon -
public static int message(ClarionString message,
ClarionString header,
java.lang.String icon,
int button)
message - header - icon - button -
public static int message(ClarionString message,
ClarionString header,
java.lang.String icon,
int button,
int defButton)
message - header - icon - button - defButton -
public static int message(ClarionString message,
ClarionString header,
java.lang.String icon,
int button,
int defButton,
int style)
message - header - icon - button - defButton - style - - 1 = system modal. 0 = app model. Ignored by swing implementation
public static void display()
public static void display(int field)
field -
public static void display(int lo,
int hi)
field -
public static void change(int field,
ClarionObject value)
field - public static void disable(int field)
field -
public static void disable(int lo,
int hi)
field - public static void enable(int field)
field -
public static void enable(int low,
int hi)
lo - hi - public static void hide(int field)
field - public static void unhide(int field)
field -
public static void unhide(int from,
int to)
from - to - public static void update(int field)
field - public static void update()
public static void select(int control)
control - public static void select()
public static PropertyObject getControl(ClarionObject control)
control -
public static PropertyObject getControl(int indx)
public static void select(int control,
int start)
control - start -
public static void select(java.lang.Object o,
int start)
o - start -
public static void select(int control,
int start,
int end)
control - start - end - public static int choice(int control)
control -
public static int choice()
public static void post(int event)
event -
public static void post(int event,
int control)
event - control -
public static void post(java.lang.Integer event,
java.lang.Integer control,
java.lang.Integer window)
event - control - window - public static ClarionString contents(int control)
control -
public static int field()
public static int focus()
public static int event()
public static java.lang.String eventString()
public static java.lang.String eventString(int event)
public static int accepted()
public static int keyCode()
public static void alert(int key)
key -
public static void alert(int lo,
int hi)
key - public static void setTarget(AbstractTarget target)
key - public static void setTarget()
key - public static AbstractTarget getTarget()
public static void closeTarget(AbstractTarget t)
public static AbstractWindowTarget getWindowTarget()
public static void addDefaultFonts()
public static void addFont(java.lang.String name)
public static int createControl(int id,
int type,
java.lang.Integer parent)
id - type - parent -
public static int createControl(int id,
int type,
java.lang.Integer parent,
java.lang.Integer position)
public static void removeControl(int id)
id -
public static void removeControl(int from,
int to)
from - to -
public static void setPosition(int control,
java.lang.Integer x,
java.lang.Integer y,
java.lang.Integer width,
java.lang.Integer height)
control - x - y - width - height -
public static void getPosition(int control,
ClarionNumber x,
ClarionNumber y,
ClarionNumber width,
ClarionNumber height)
control - x - y - width - height -
public static void setFont(int control,
java.lang.String typeface,
java.lang.Integer size,
java.lang.Integer color,
java.lang.Integer style,
java.lang.Integer charset)
control - typeface - size - color - style - charset - public static void setCursor(java.lang.String cursor)
cursor - public static void setCursor()
public static void beep()
public static void beep(int tone)
tone - public static void setKeyCode(int code)
code - public static void setKeyChar(int code)
code - public static void pressKey(int code)
code - public static int keyChar()
public static void forwardKey(int control)
control - public static int popup(java.lang.String message)
message - window to draw.
| delimiter separates items
~ prefix disables an option
+ prefix draws check mark
- prefix no draw check mark
{} in option defines sub options. Can be deeply nested
public static int popup(java.lang.String message,
java.lang.Integer x,
java.lang.Integer y)
public static boolean printerDialog(ClarionString title,
java.lang.Integer mode)
title - mode -
public static javax.swing.filechooser.FileSystemView getView()
public static void setFileSystemView(javax.swing.filechooser.FileSystemView view)
public static boolean fileDialog(java.lang.String title,
ClarionString target,
java.lang.String ifiles,
int options)
public static boolean colorDialog(java.lang.String title,
ClarionNumber rgb,
java.lang.Integer suppress)
title - rbg - suppress - - if set to one then suppress selection of standard colors
public static boolean fontDialog(java.lang.String title,
ClarionString typeFace,
ClarionNumber size,
ClarionNumber color,
ClarionNumber style,
ClarionNumber added)
title - - dialog titletypeFace - - typeface to displaysize - - font sizecolor - - font colorstyle - - font style. Italic, bold etcadded - - null = truetype fonts only. 0 = window fonts. 1 = printer fonts. 2 = both
public static void clearAliasKey(int key)
public static void clearAllAliasKeys()
public static void aliasKey(int from,
int to)
from - to - public static int keyState()
public static ClarionString getClipboard()
public static void setClipboard(ClarionString content)
public static int getLastField()
public static int getFirstField()
public static int getMouseX()
public static int getMouseY()
public static void register(int event,
java.lang.Runnable trigger,
int key)
event - trigger -
public static void unregister(int event,
java.lang.Runnable trigger,
int key)
public static void box(int x,
int y,
int width,
int height)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||