public class InputFileControl
extends javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
protected HTMLElementImpl |
controlElement |
protected org.lobobrowser.html.renderer.RUIControl |
ruicontrol |
protected int |
size |
protected java.lang.String |
value |
protected static java.awt.Dimension |
ZERO_DIMENSION |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
InputFileControl(HTMLBaseInputElement modelNode) |
| Modifier and Type | Method and Description |
|---|---|
void |
blur() |
void |
click() |
void |
focus() |
java.awt.Color |
getBackgroundColor() |
boolean |
getChecked() |
int |
getCols() |
java.awt.Component |
getComponent() |
int |
getControlSize() |
boolean |
getDisabled() |
java.io.File |
getFileValue() |
int |
getMaxLength() |
boolean |
getMultiple() |
java.awt.Dimension |
getPreferredSize() |
boolean |
getReadOnly() |
int |
getRows() |
int |
getSelectedIndex() |
int |
getTabIndex() |
int |
getVAlign() |
java.lang.String |
getValue() |
java.lang.String[] |
getValues()
Returns
null. |
int |
getVisibleSize() |
void |
invalidate() |
protected void |
invalidateAndRepaint()
Method invoked when image changes size.
|
void |
paint(java.awt.Graphics g) |
boolean |
paintSelection(java.awt.Graphics g,
boolean inSelection,
RenderableSpot startPoint,
RenderableSpot endPoint) |
void |
reset(int availWidth,
int availHeight)
Called as the control is layed out, either
the first time HTML layout occurs or when
the DOM changes.
|
void |
resetInput() |
void |
select() |
void |
setBounds(int x,
int y,
int width,
int height) |
void |
setChecked(boolean checked) |
void |
setCols(int cols) |
void |
setControlSize(int size) |
void |
setDisabled(boolean disabled) |
void |
setMaxLength(int maxLength) |
void |
setMultiple(boolean value) |
void |
setReadOnly(boolean readOnly) |
void |
setRows(int rows) |
void |
setRUIControl(org.lobobrowser.html.renderer.RUIControl ruicontrol) |
void |
setSelectedIndex(int value) |
void |
setTabIndex(int tabIndex) |
void |
setValue(java.lang.String value) |
void |
setVisibleSize(int value) |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, setNameprotected java.lang.String value
protected int size
protected static final java.awt.Dimension ZERO_DIMENSION
protected final HTMLElementImpl controlElement
protected org.lobobrowser.html.renderer.RUIControl ruicontrol
public InputFileControl(HTMLBaseInputElement modelNode)
public java.lang.String getValue()
getValue in interface InputContextpublic void setDisabled(boolean disabled)
setDisabled in interface InputContextpublic void setValue(java.lang.String value)
setValue in interface InputContextpublic java.io.File getFileValue()
getFileValue in interface InputContextpublic void resetInput()
public void reset(int availWidth,
int availHeight)
public int getVAlign()
public void blur()
blur in interface InputContextpublic void click()
click in interface InputContextpublic void focus()
focus in interface InputContextpublic boolean getChecked()
getChecked in interface InputContextpublic boolean getDisabled()
getDisabled in interface InputContextpublic int getMaxLength()
getMaxLength in interface InputContextpublic boolean getReadOnly()
getReadOnly in interface InputContextpublic int getTabIndex()
getTabIndex in interface InputContextpublic java.lang.String[] getValues()
null. It should be
overridden by controls that support multiple values.getValues in interface InputContextpublic void select()
select in interface InputContextpublic void setChecked(boolean checked)
setChecked in interface InputContextpublic void setMaxLength(int maxLength)
setMaxLength in interface InputContextpublic void setReadOnly(boolean readOnly)
setReadOnly in interface InputContextpublic void setControlSize(int size)
setControlSize in interface InputContextpublic void setTabIndex(int tabIndex)
setTabIndex in interface InputContextpublic int getControlSize()
getControlSize in interface InputContextpublic int getCols()
getCols in interface InputContextpublic int getRows()
getRows in interface InputContextpublic void setCols(int cols)
setCols in interface InputContextpublic void setRows(int rows)
setRows in interface InputContextpublic boolean paintSelection(java.awt.Graphics g,
boolean inSelection,
RenderableSpot startPoint,
RenderableSpot endPoint)
public boolean getMultiple()
public int getSelectedIndex()
getSelectedIndex in interface InputContextpublic int getVisibleSize()
getVisibleSize in interface InputContextpublic void setMultiple(boolean value)
public void setSelectedIndex(int value)
setSelectedIndex in interface InputContextpublic void setVisibleSize(int value)
setVisibleSize in interface InputContextpublic java.awt.Component getComponent()
public void setRUIControl(org.lobobrowser.html.renderer.RUIControl ruicontrol)
protected void invalidateAndRepaint()
public java.awt.Color getBackgroundColor()
public java.awt.Dimension getPreferredSize()
public void setBounds(int x,
int y,
int width,
int height)
public void invalidate()
public void paint(java.awt.Graphics g)