com.sssw.shr.page
Class AgpControlHTMLUnitBase
java.lang.Object
|
+--com.sssw.shr.page.AgpControlHTMLUnitBase
- public class AgpControlHTMLUnitBase
- extends Object
This is the base class for design-time objects for page controls.
A page control writer can optionally supply another class named
the same as the page control, but with the suffix HTMLUnit, to provide
a design-time rendering of the control. The optional class should
extend this class and override the draw() methods.
It can also override the getAscent(), getDescent() or getWidth() methods.
The optional class can also override the layout() method to be notified
of size changes of the control.
Useful utility methods can be found in the AgpHTMLUnitHelper class.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AgpControlHTMLUnitBase
public AgpControlHTMLUnitBase()
getAscent
public int getAscent()
- Specified by:
- getAscent in interface com.sssw.rt.rteditor.AgiHTMLUnit
getDescent
public int getDescent()
- Specified by:
- getDescent in interface com.sssw.rt.rteditor.AgiHTMLUnit
getWidth
public int getWidth()
- Specified by:
- getWidth in interface com.sssw.rt.rteditor.AgiHTMLUnit
layout
public void layout(int full_width,
int full_height)
- Specified by:
- layout in interface com.sssw.rt.rteditor.AgiHTMLUnit
draw
public void draw(Graphics g)
- Specified by:
- draw in interface com.sssw.rt.rteditor.AgiHTMLUnit
resize
public void resize(int width,
int height,
int full_width,
int full_height)
- Specified by:
- resize in interface com.sssw.rt.rteditor.AgiHTMLUnit
undo
public void undo(AgpHTMLUndoable undoable)
redo
public void redo(AgpHTMLUndoable undoable)