Class
zebkit.ui.ImageLabel
extends <zebkit.ui.Panel> |
<zebkit.ui> |
Image label UI component. This is UI container that consists from an image component and an label component.Image is located at the left size of text.
zebkit.ui.ImageLabel
([img], [txt], [w], [h]
)
Parameters:
-
[img]
<Image | String>an image or path to the image
-
[txt]
<String | zebkit.draw.TextRender | zebkit.data.TextModel>a text string, text model or text render instance
-
[w]
<Integer>an image preferred width
-
[h]
<Integer>an image preferred height
public | <zebkit.ui.ImagePan> | getImagePan ( ) |
public | <zebkit.ui.ImagePan> | getLabel ( ) |
public | <zebkit.ui.Panel> | getValue ( ) |
public | void | setColor (a) |
public | void | setFont (a) |
public | void | setImage (p) |
public | void | setImgAlignment (an) |
public | void | setImgPreferredSize (w, [h]) |
public | void | setValue (c) |
Inherited methods:
$setConstraints(c)
add(constr, d)
byConstraints([p], c)
byPath(path, [cb])
calcPreferredSize(target)
doLayout( )
fire(name, [path], [params])
focused( )
getBottom( )
getCanvas( )
getComponentAt(x, y)
getHorPadding( )
getLeft( )
getPreferredSize( )
getRight( )
getTop( )
getVerPadding( )
hasFocus( )
indexOf(c)
insert(i, constr, d)
invalidate( )
invalidateLayout( )
kidAdded(index, constr, l)
kidRemoved(i, l, ctr)
laidout( )
load(JSON)
off([eventName], [path], [cb])
on([eventName], [path], cb)
paintChildComponents(g, clipChild)
paintComponent(g)
paintViewAt(g, ax, ay, v)
properties([path], props)
property([path], name, value)
recalc( )
relocated(px, py)
remove(c)
removeAll( )
removeAt(i)
removeByConstraints(ctr)
removeMe([after])
repaint([x], [y], [w], [h])
replaceMe([ctr], c)
requestFocus( )
requestFocusIn([timeout])
resized(pw, ph)
setAt(i, d)
setBackground(v)
setBorder([v])
setBorderLayout([gap])
setBottomPadding(bottom)
setBounds(x, y, w, h)
setByConstraints(constr, c)
setConstraints(ctr)
setEnabled(b)
setFlowLayout([ax], [ay], [dir], [gap])
setGrisLayout( )
setId(id)
setKids(a)
setLayout(m)
setLeftPadding(left)
setListLayout([ax], [gap])
setLocation(xx, yy)
setPadding(v)
setParent(o)
setPreferredHeigh(h)
setPreferredSize(w, h)
setPreferredWidth(w)
setProperties([path], props)
setRasterLayout([usePsSize])
setRightPadding(right)
setSize(w, h)
setStackLayout([gap])
setTopPadding(top)
setVisible(b)
toBack( )
toFront( )
toPreferredHeight( )
toPreferredSize( )
toPreferredWidth( )
toView(target)
validate( )
validateMetric( )
vrp( )
public
<zebkit.ui.ImagePan>
getImagePan ( )
Get image panel.
Returns:
<zebkit.ui.ImagePan>
an image panel. |
public
<zebkit.ui.ImagePan>
getLabel ( )
Get label component.
Returns:
<zebkit.ui.ImagePan>
a label component. |
public
chainable
setImage (p )
Set the specified label image Parameters:
|
public
chainable
setImgAlignment (an )
Set the image alignment. Parameters:
|
public
chainable
setImgPreferredSize (w, [h] )
Set image preferred size. Parameters:
|
public
chainable
setValue (c )
Set the specified caption Parameters:
|
Inherited attributes:
protected
Function
$matchPath
public
zebkit.draw.View
bg
public
zebkit.draw.View
border
public
Boolean
canHaveFocus
public
Object
constraints
public
Integer
height
public
Boolean
isEnabled
public
Boolean
isValid
public
Boolean
isVisible
public
Array
kids
public
zebkit.layout.Layout
layout
public
zebkit.layout.Layoutable
parent
public
Integer
width
public
Integer
x
public
Integer
y












Inherited events:
childEventName(e)
clipCopy()
clipPaste(s)
compAdded(e)
compEnabled(e)
compMoved(e)
compRemoved(e)
compShown(e)
compSized(e)
focusGained(e)
focusLost(e)
keyPressed(e)
keyReleased(e)
keyTyped(e)
pointerClicked(e)
pointerDragEnded(e)
pointerDragged(e)
pointerDragStarted(e)
pointerEntered(e)
pointerExited(e)
pointerMoved(e)
pointerPressed(e)
pointerReleased(e)