|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.editor.project.helper.BuddyHelper
public class BuddyHelper
Extends StyleFactory by adding a caption component whenever a new component is added. This is intended for use with components such as TextFields, Choice and so on that normally have an associated label or caption
Copyright: Copyright (c) Formaria Ltd., 1998-2003
License: see license.txt
| Constructor Summary | |
|---|---|
BuddyHelper(StyleFactory sf)
Constructs a new BuddyHelper. |
|
| Method Summary | |
|---|---|
java.lang.Object |
addComponent(java.lang.String type,
int x1,
int x2,
int x3,
int y,
int w,
int h,
java.lang.String caption,
java.lang.String txt,
java.lang.String suffix,
java.lang.String style)
Pass the addNamedComponent call to the StyleFactory base Class |
java.lang.Object |
addComponent(java.lang.String type,
int x1,
int x2,
int y,
int w,
int h,
java.lang.String caption,
java.lang.String txt,
java.lang.String style)
Pass the addNamedComponent call to the StyleFactory base Class |
java.lang.Object |
addComponent(java.lang.String type,
int x,
int y,
int w,
int h,
java.lang.String caption,
java.lang.String txt,
java.lang.String style)
Pass the addNamedComponent call to the StyleFactory base Class |
java.lang.Object |
getBuddy(java.lang.Object comp)
Gets the associated buddy label. |
java.lang.Object |
getBuddySuffix(java.lang.Object comp,
int item)
Get a component following the referenced component. |
void |
setEnabled(java.lang.Object comp,
boolean b)
Set the enabled state for the component and its buddy |
void |
setVisible(java.lang.Object comp,
boolean b)
Set the visible state for the component and its buddy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BuddyHelper(StyleFactory sf)
sf - the StyleFactory used to create the new components.| Method Detail |
|---|
public java.lang.Object addComponent(java.lang.String type,
int x1,
int x2,
int y,
int w,
int h,
java.lang.String caption,
java.lang.String txt,
java.lang.String style)
type - The type of object being constructedx1 - The x coordinate of the new label componentx2 - The x coordinate of the new primary componenty - The y coordinate of the new componentw - The total width of the new componentsh - The height of the new componentcaption - The text of the associated labeltxt - The text/content of the new componentstyle - The name of the style to apply
public java.lang.Object addComponent(java.lang.String type,
int x1,
int x2,
int x3,
int y,
int w,
int h,
java.lang.String caption,
java.lang.String txt,
java.lang.String suffix,
java.lang.String style)
suffix - the suffix texttype - The type of object being constructedx1 - The x coordinate of the new label componentx2 - The x coordinate of the new primary componentx3 - The x coordinate of the suffix labely - The y coordinate of the new componentw - The total width of the new componentsh - The height of the new componentcaption - The text of the associated labeltxt - The text/content of the new componentstyle - The name of the style to apply
public java.lang.Object addComponent(java.lang.String type,
int x,
int y,
int w,
int h,
java.lang.String caption,
java.lang.String txt,
java.lang.String style)
type - The type of object being constructedx - The x coordinate of the new componenty - The y coordinate of the new componentw - The total width of the new componentsh - The height of the new componentcaption - The text of the associated labeltxt - The text/content of the new componentstyle - The name of the style to apply
public java.lang.Object getBuddy(java.lang.Object comp)
comp - the component for which the buddy label was added
public java.lang.Object getBuddySuffix(java.lang.Object comp,
int item)
comp - the main componentitem - the offset, normally 1
public void setVisible(java.lang.Object comp,
boolean b)
comp - the component for which the buddy label was addedb - true to show the component, false to hide
public void setEnabled(java.lang.Object comp,
boolean b)
comp - the component for which the buddy label was addedb - true to enable the component, false to disable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||