Class jif.awt.AwarePanel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jif.awt.AwarePanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----jif.awt.AwarePanel

public class AwarePanel
extends Panel

Variable Index

 o CAPTION
 o CENTER
 o FLAT
 o GROOVED
 o LEFT
 o LOWERED
 o NONE
 o RAISED
 o RIDGED
 o RIGHT
 o ROUNDED
 o TAB_KEY
 o TEXT_LOWERED
 o TEXT_NORMAL
 o TEXT_RAISED
 o TEXT_SHADOW

Constructor Index

 o AwarePanel()
 o AwarePanel(int, int, int)
 o AwarePanel(int, int, int, String)

Method Index

 o drawFrame(Graphics)
 o drawText(Graphics)
 o findChild(String)
 o findNextComponent(int)
Finds the next widget in the component list...
 o findPreviousComponent(int)
Finds the previous widget in the component list...
 o focusBackward(Component)
Sends the focus to the previous component
 o focusForward(Component)
Sends the focus to the next component
 o generateInsertSQL(String)
Generates an SQL INSERT statement for the AwareTextFields on this panel that have changed.
 o generateUpdateSQL(String)
Generates an SQL UPDATE statement for the AwareTextFields on this panel that have changed.
 o handleEvent(Event)
 o isStyleSet(int)
Check the style bitmap for inclusion.
 o minimumSize()
 o paint(Graphics)
 o preferredSize()
 o setChildValue(String, int)
 o setChildValue(String, String)
 o setFocus(Component)
This routine is called when any of the child components get the focus.
 o setStyle(int)
 o setText(String)
 o setText(String, int, int)
 o setTextPlacement(int)
 o setTextStyle(int)
 o setThickness(int)

Variables

 o TAB_KEY
  public final static int TAB_KEY
 o TEXT_NORMAL
  public final static int TEXT_NORMAL
 o TEXT_LOWERED
  public final static int TEXT_LOWERED
 o TEXT_RAISED
  public final static int TEXT_RAISED
 o TEXT_SHADOW
  public final static int TEXT_SHADOW
 o CENTER
  public final static int CENTER
 o LEFT
  public final static int LEFT
 o RIGHT
  public final static int RIGHT
 o NONE
  public final static int NONE
 o FLAT
  public final static int FLAT
 o GROOVED
  public final static int GROOVED
 o LOWERED
  public final static int LOWERED
 o ROUNDED
  public final static int ROUNDED
 o RAISED
  public final static int RAISED
 o RIDGED
  public final static int RIDGED
 o CAPTION
  public final static int CAPTION

Constructors

 o AwarePanel
  public AwarePanel()
 o AwarePanel
  public AwarePanel(int style,
                    int width,
                    int height)
 o AwarePanel
  public AwarePanel(int style,
                    int width,
                    int height,
                    String text)

Methods

 o setStyle
  public void setStyle(int style)
 o setText
  public void setText(String newText,
                      int textStyle,
                      int placement)
 o setText
  public void setText(String newText)
 o setTextStyle
  public void setTextStyle(int textStyle)
 o setTextPlacement
  public void setTextPlacement(int placement)
 o setThickness
  public void setThickness(int thick)
 o paint
  public void paint(Graphics g)
Overrides:
paint in class Component
 o drawFrame
  public void drawFrame(Graphics g)
 o preferredSize
  public Dimension preferredSize()
Overrides:
preferredSize in class Container
 o minimumSize
  public Dimension minimumSize()
Overrides:
minimumSize in class Container
 o drawText
  public void drawText(Graphics g)
 o isStyleSet
  public boolean isStyleSet(int check)
Check the style bitmap for inclusion.
Parameters:
check - The bits to check
 o focusForward
  public synchronized void focusForward(Component c)
Sends the focus to the next component
 o focusBackward
  public synchronized void focusBackward(Component c)
Sends the focus to the previous component
 o findNextComponent
  protected int findNextComponent(int startPos)
Finds the next widget in the component list...
Parameters:
startPos - The starting position
 o findPreviousComponent
  protected int findPreviousComponent(int startPos)
Finds the previous widget in the component list...
Parameters:
startPos - The starting position
 o setFocus
  public void setFocus(Component target)
This routine is called when any of the child components get the focus. It is a feeble attempt to figure out what the current position in the tab order I am. However, as of the JDK v1.0.2, the focus events are not working properly.
Parameters:
c - The component who got the focus
 o generateUpdateSQL
  public String generateUpdateSQL(String tableName)
Generates an SQL UPDATE statement for the AwareTextFields on this panel that have changed.
Parameters:
tableName - The name of the table to update
 o generateInsertSQL
  public String generateInsertSQL(String tableName)
Generates an SQL INSERT statement for the AwareTextFields on this panel that have changed.
Parameters:
tableName - The name of the table to update
 o setChildValue
  public void setChildValue(String name,
                            String value)
 o setChildValue
  public void setChildValue(String name,
                            int value)
 o findChild
  protected Component findChild(String name)
 o handleEvent
  public boolean handleEvent(Event event)
Overrides:
handleEvent in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index