Gadget.class
  
  
 

   

Public Class Gadget extends Gob.class

Inheritance Heirarchy.
 
        java.lang.Object
        | 
        +--
Gob()
                   |
                   Gadget()
 
 
 Constructors

public Gadget(String tName)

The width/height of the Gadget will be the width of the String so you will want to use a leading/trailing space.   The Gadget will be assigned to HyperView.viewBase;

 public Gadget(HyperView,String)
String is the actual text that will be rendered on the Gadget.

 public Gadget(String,int,int)
(Text,X,Y)
 Create the Gadget and place at X / Y.

 public Gadget(String,int,int,Font)

(Text,X,Y,Font)
  Create the Gadget using String and places it at X / Y using tmpFont as its Font.

 public Gadget(HyperView, String,int,int,int,int)

(X,Y,Width,Height)

  Create the Gadget using String and places it at X / Y and make it tWidth/tHeight in size.

public Gadget(String tString,int pX,int pY,int tWidth,int tHeight)

(X,Y,Width,Height)

  Create the Gadget using String and places it at X / Y and make it tWidth/tHeight in size.
public Gadget(Dispatch,String,int,int)

(Dispatch, Text,X,Y)

This one takes a Dispatch.class Object as an argument.



public Gadget(HyperView,String,int,int)

(View,Text,X,Y)






public Gadget(HyperView,String,int,int,Font)

(View,Text,X,Y,Font)



public Gadget(HyperView,String,int,int,int,int,Font)





public Gadget(HyperView tView,String tName,int pX,int pY,int tWidth,
int tHeight,int tGobFlags,int tGadFlags,Font tmpFont)






public Gadget(HyperView tView,String tName,Titlebar,intpX,int pY,
int tWidth,int tHeight,int tGobFlags,int tGadFlags,Font tmpFont)


(View,Text,Titlebar,X,Y,Width,Height,GobFlags,GadgetFlags,Font)
This allows you to tweak the various flag bits. See HyperConstants.class



Methods
boolean   isShowing()
boolean
 isVisible()
void  setVisible(boolean)
boolean  isEnabled()
void  setEnabled(boolean)
Color getForeground()
Get the current foreground text drawing color.
void
public void setForeground(int c)
Set the current foreground text draw color Palette index,
void addDispatch(Dispatch)
Overwrite these methods and set the relevant flag bit to use
void
void
void
void
void
void
void
onMouseOver()
inKey()
mouseWheelMoved(MouseWheelEvent e)
inString(String str)
keyReleaseENA()
keyTypedENA()
allKeyMsgENA()

Enable/Disable Layering
void
void
layerENA()
layerDisable()

void setName(String tStr)
void toFront()
Todo: make toBack(),popUp(),pushBack(),methods
void makeBitmap(Font tmpFont)
void
void
 
toString()
cleanUp()   //like destroy()


 
 
HyperView 2.958 Classes
       NIO Server    
      Server Threads   
    List details    
HyperView Methods