Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.GetString
Source: src/com/multiversesocial/hyperview/GetString.java

GetString

HyperView V3.2 — class
version V3.2 class

Summary

System.out.println("new GetString = "+curView.totalGetStrings+" "+toString());

Source file: GetString.java

Hierarchy

Extends: Gadget

Implements: HyperConstants, GetStringConstants, TextConstants

Referenced HyperView classes

Media files used

Declaration & members

public class GetString extends Gadget implements HyperConstants, GetStringConstants, TextConstants

Declared in src/com/multiversesocial/hyperview/GetString.java, lines 10–840. 23 field(s), 4 constructor(s), 27 method(s). Every member has an anchor you can link to (e.g. GetString.html#<id>).

Fields (23)

DeclarationValue / initializerDescriptionSource
String captionNo comment in source; not referenced by name in this type’s methods.line 34
int curCharNo comment in source; assigned in GetString(), inKey(), setString(), viewSafeSetString(); used in drawCursor(), updateString().line 30
static volatile GetString currentGetStringNo comment in source; not referenced by name in this type’s methods.line 14
HyperView curViewA Link to the Parent viewline 15
int endCharNo comment in source; assigned in GetString(), inKey(), setString(), viewSafeSetString(); used in drawCursor(), updateString().line 31
Font fontWhat Font Our GetS() Text is displayed inline 32
int getStringFlagsNo comment in source; assigned in GetString(), outlineOn(), outlineOff(), getNumbersOn(), getNumbersOff() …; used in getFlags(), inKey().line 23
int getStringNumberNo comment in source; assigned in GetString(); used in inKey().line 17
int insertMaxNo comment in source; assigned in GetString().line 28
HyperKeyboard keyboardNo comment in source; assigned in GetString(), destroy(); used in inKey(), onMouseOver(), updateString().line 18
static volatile GetString lastGetStringNo comment in source; not referenced by name in this type’s methods.line 14
int maxCharsNo comment in source; assigned in GetString(); used in inKey().line 29
Dispatch methodNo comment in source; assigned in addDispatch(); used in inKey().line 33
volatile String passStrNo comment in source; assigned in GetString(), inKey().line 20
int textFlagsNo comment in source; assigned in GetString().line 16
volatile String textStrNo comment in source; assigned in GetString(), inKey(), setString(), viewSafeSetString(); used in onMouseOver(), drawCursor(), updateString().line 19
int textXNo comment in source; assigned in GetString(); used in inKey(), onMouseOver(), setString(), viewSafeSetString().line 21
int textYNo comment in source; assigned in GetString().line 22
char tmpCharNo comment in source; assigned in GetString(), inKey().line 25
int tmpIntNo comment in source; assigned in GetString(), inKey().line 26
KeyEvent tmpKeyNo comment in source; assigned in inKey().line 24
int z= 0No comment in source; assigned in GetString(), makeGob().line 27

Constructors (4)

SignatureDescriptionSource
GetString()1 statement(s); calls super().line 36
GetString(HyperView tView, int tx, int ty, int tMaxChars)1 statement(s); calls this().line 41
GetString(HyperView tView, int tx, int ty, int tMaxChars, int tFlags)1 statement(s); calls this().line 46
GetString(String defaultText, HyperView tView, int tx, int ty, int tMaxChars, int tFlags)61 statement(s); calls super(), tView.getCursor(), curView.guru(), this.cursorGraphics.getFontMetrics(this.font).stringWidth(), this.cursorGraphics.getFontMetrics() …; creates Color.line 51

Methods (27)

SignatureDescriptionSource
public void addDispatch(Dispatch d)Sets this.method = d.
Overrides Gadget.addDispatch()
line 412
public void destroy()Sets keyboard = null.line 731
public void drawBack()10 statement(s); calls selectGraphics.setColor(), selectGraphics.fillRect(), selectGraphics.drawLine(), selectGraphics.setFont().line 364
public void drawCursor()3 statement(s); calls graphics.drawImage(), graphics.setColor(), graphics.drawString(), textStr.charAt().
Overrides Gadget.drawCursor()
line 736
public void drawOutline()6 statement(s); calls graphics.setColor(), graphics.drawLine().
Overrides Gadget.drawOutline()
line 319
public void drawOutline(Color c)11 statement(s); calls lineColorA.darker(), lineColorB.darker(), graphics.setColor(), graphics.fillRect(), graphics.drawLine().line 349
public void drawOutline2()7 statement(s); calls graphics.setColor(), graphics.fillRect(), graphics.drawLine().
Overrides Gadget.drawOutline2()
line 329
public String getFlags()4 statement(s).line 425
public Image getImageFromJar(String fileName)4 statement(s); calls HyperView.resolveResourceURLStatic(), curView.getAppletContext().getImage(), curView.getAppletContext(), curView.hyperViewOut().
Overrides Gob.getImageFromJar()
line 782
public void getNumbersOff()1 statement(s).line 394
public void getNumbersOn()1 statement(s).line 389
public void inKey()1 statement(s); calls tmpKey.getKeyChar(), tmpKey.getKeyCode(), keyboard.isPrintable(), keyboard.isNumeric(), textStr.substring() …; creates PrintStream.
Overrides Gadget.inKey()
line 437
public void inString(String str)1 statement(s); calls curView.hyperViewOut().
Overrides Gadget.inString()
line 683
public void loadCursor()1 statement(s); calls curView.createImage(), cursorImage.getGraphics(), getImageFromJar(), curView.getAppletContext().getImage(), curView.getAppletContext() …; creates URL.line 259
public void loadCursor(String Name)2 statement(s); calls curView.createImage(), this.cursorImage.getGraphics(), getImageFromJar(), curView.getAppletContext().getImage(), curView.getAppletContext() …; creates URL.line 277
public void makeGob(String tName, int sx, int sy)7 statement(s); calls gobName.endsWith(), curView.createImage(), getGraphics(), getImageFromJar(), curView.getAppletContext().getImage() …; creates URL.line 175
public void onMouseOver()3 statement(s); calls tGetsGraphics.setColor(), tGetsGraphics.fillRect(), tGetsGraphics.drawString(), tGetsGraphics.drawLine(), graphics.setColor() ….
Overrides Gadget.onMouseOver()
line 688
public void outlineOff()1 statement(s).line 314
public void outlineOn()1 statement(s).line 309
public void passwordDisable()2 statement(s).line 406
public void passwordEnable()2 statement(s).line 400
public void run()1 statement(s).line 777
public void setDrawMode(boolean mode)1 statement(s).line 417
public void setOutlineColor(Color c)In case you fancy changing theline 380
public void setString(String tString)10 statement(s); calls graphics.setColor(), graphics.fillRect(), graphics.drawString(), textStr.length(), curView.blitterLock.notifyAll().line 804
public void updateString(String tString)4 statement(s); calls graphics.setColor(), graphics.drawLine(), graphics.drawImage(), graphics.drawString(), textStr.charAt().line 750
public void viewSafeSetString(String tString)2 statement(s); calls graphics.setColor(), graphics.fillRect(), graphics.drawString(), textStr.length(), curView.blitterLock.notifyAll().line 824

Inherited members

Non-private members inherited from HyperView superclasses and not overridden or hidden here.

From Gadget (32 fields, 19 methods)

Fields: backColor, conFont, cursorGraphics, cursorHeight, cursorImage, cursorName, cursorScrollXOffset, cursorScrollYOffset, cursorWidth, cursorX, cursorY, displayInfo, fGColor, flipCount, gadFlags, gadFlags2, gadNumber, lastCursorX, lastCursorY, lineColorA, lineColorB, lineColorC, locked, parentTitlebar, stringHeight, stringWidth, stringX, stringY, tc1, tc2, tc3, tc4

Methods: allKeyMsgENA(), cleanUp(), getForeground(), isEnabled(), isShowing(), isVisible(), keyReleaseENA(), keyTypedENA(), layerDisable(), layerENA(), makeBitmap(Font), mouseWheelMoved(MouseWheelEvent), setEnabled(boolean), setForeground(int), setName(String), setVisible(boolean), toFront(), toString(), updateText()

From Gob (74 fields, 26 methods)

Fields: asynchGraphics1, asynchGraphics2, asynchImage1, asynchImage2, attachedGob, attachedIndex, backGround, bgMemoryImageSource, bGPen, bottomMax, clickX, clickY, collisionClassMask, curAttached, currentZIndex, depth, destGob, destGraphics, dispatchHoldCount, drawMode, dX, dY, dZ, fgMemoryImageSource, fGPen, gobEventFlags, gobFlags, gobFlags2, gobGadIndex, gobHx, gobHy, gobHz, gobName, gobNumber, gobOrbitRadius, gobPic, gobTypeFlags, graphics, gravity, height, heightBase, hSin, hyp, infoString, lClickX, lClickY, leftMin, maxAttached, memoryCounter, moveNum, mX, mX2, mY, mY2, oldX, oldY, oldZ, orbitGob, rightMax, scanLine, selectGraphics, selectImage, selectTime, spline, tint, topMin, totalAttached, width, widthBase, wSin, x, x2, y, y2

Methods: addGob(Gob), addSpline(Spline), center(), collisionOff(), collisionOn(), disable(), enable(), getGraphics(), getPixels(), gobZInit(), initScanline(int), inView(), isInView(), isMemoryImageSource(), move(int, int), move(Gadget, int, int), moveNext(), onClick(), onDisplay(), onRelease(), printGobAttr(HyperView), printScanLines(), remGob(), remove(), zENA(), zOff()

From Linkable (7 fields, 1 methods)

Fields: attachment, index, linkFlags, name, next, parentList, prev

Methods: inList()

Examples

Real usage taken from elsewhere in the HyperView 3.2 source (file and line shown; source path src/com/multiversesocial/hyperview/).

instantiation — ChannelControlPane.java, line 88

   87                    //-
   88  dataGetString      = new GetString("",curView,159,7,24,0);

subclass — Image2RGB.java, line 82

   82  class Image2RGBGetTimeout extends GetString
   83  {

declaration — ChangeWorkForce.java, line 21

   21  GetString tGetString;
Hits--