|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--gtk.Object | +--gtk.Widget | +--gtk.Entry
Defined in jsgtk_min.js
Field Summary | |
Object |
_dom
|
Object |
_height
|
Object |
_maxLength
|
Object |
_text
|
Object |
_visible
|
Object |
_width
|
Constructor Summary | |
gtk.Entry(<String> maxLength)
A single line text entry field |
Method Summary | |
void
|
_render()
|
void
|
focus()
|
integer
|
getMaxLength()
retrieves the value of the "max-length" property that specifies the maximum allowed length of the text in the entry. |
Object
|
getMinHeightComposite()
|
Object
|
getMinWidthComposite()
|
String
|
getText()
Returns the value of the "text" property which is a string containing the contents of the entry. |
interger
|
getTextLength()
Retrieves the current length of the text in entry |
boolean
|
getVisibility()
retrieves the value of the "visibility" property that determines whether the text in entry is visible. |
integer
|
getWidthChars()
gets the value of the "widthChars" property which is set by the setWidthChars() method |
void
|
resetHeightComposite()
|
void
|
resetWidthComposite()
|
void
|
resize(width, height)
|
void
|
resizeEntryByFont(size)
Reset height by font size |
void
|
resizeHeightComposite(height)
|
void
|
resizeWidthComposite(width)
|
void
|
setBorderVisible(isBorderVisible)
|
void
|
setDisplayLabel(label)
|
void
|
setMaxLength(<interger> max)
sets the "max-length" property to the value of max |
void
|
setText(<String> text)
Sets the "text" property to the value of text. |
void
|
setVisibility(<boolean> visible)
sets the "visibility" property to the value of visible. |
void
|
setWidthChars(<interger> nChars)
sets the "width-chars" property to the value of n_char |
Methods inherited from class gtk.Widget |
setBoldTitle, getNode, show, hide, activate, setActivateSignal, getActivateSignal, setSizeRequest, setSize, setWidth, getWidth, setHeight, getHeight, getSizeRequest, sizeRequest, getSize, _resizeHeight
|
Field Detail |
Object _dom
Object _height
Object _maxLength
Object _text
Object _visible
Object _width
Constructor Detail |
gtk.Entry(<String> maxLength)
maxLength
- The maximum length of the entry
Method Detail |
void _render()
void focus()
integer getMaxLength()
Object getMinHeightComposite()
Object getMinWidthComposite()
String getText()
interger getTextLength()
boolean getVisibility()
integer getWidthChars()
void resetHeightComposite()
void resetWidthComposite()
void resize(width, height)
void resizeEntryByFont(size)
number
- in px
void resizeHeightComposite(height)
void resizeWidthComposite(width)
void setBorderVisible(isBorderVisible)
void setDisplayLabel(label)
void setMaxLength(<interger> max)
max
- The maximum length of the entry. The value passed in will be clamped to the range 0-65536.
void setText(<String> text)
text
- A string to use as the new contents of the entry
void setVisibility(<boolean> visible)
visible
- If False the contents are obscured using the "invisible-char"
void setWidthChars(<interger> nChars)
nChars
- Width in chars
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |