Interface Placeholderable
-
- All Superinterfaces:
Serializable,WComponent,WebComponent
- All Known Implementing Classes:
WEmailField,WMultiTextField,WPasswordField,WPhoneNumberField,WTextArea,WTextField
public interface Placeholderable extends WComponent
This is a marker interface to indicate that this component can take placeholder text.- Since:
- 1.4
- Author:
- Rick Brown
-
-
Field Summary
-
Fields inherited from interface com.github.bordertech.wcomponents.WComponent
DEFAULT_APPLICATION_ID, DEFAULT_INTERNAL_ID, DEFAULT_NO_ID, ID_CONTEXT_SEPERATOR, ID_FRAMEWORK_ASSIGNED_SEPERATOR, ID_VALIDATION_PATTERN
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetPlaceholder()Get the placeholder text, if explicitly set.voidsetPlaceholder(String placeholder)Set placeholder text which will appear in the field if it is editable and has no content.-
Methods inherited from interface com.github.bordertech.wcomponents.WComponent
addHtmlClass, addHtmlClass, forward, getAccessibleText, getAttribute, getBaseUrl, getEnvironment, getHeaders, getHtmlClass, getHtmlClasses, getId, getIdName, getInternalId, getLabel, getName, getParent, getTabIndex, getTag, getToolTip, handleRequest, hasTabIndex, invokeLater, isDefaultState, isHidden, isInitialised, isLocked, isTracking, isTrackingEnabled, isValidate, isVisible, paint, preparePaint, removeAttribute, removeHtmlClass, removeHtmlClass, reset, serviceRequest, setAccessibleText, setAttribute, setEnvironment, setFocussed, setHtmlClass, setHtmlClass, setIdName, setInitialised, setLocked, setTag, setToolTip, setTrackingEnabled, setValidate, setVisible, showErrorIndicators, showWarningIndicators, tidyUpUIContextForTree, validate
-
-
-
-
Method Detail
-
setPlaceholder
void setPlaceholder(String placeholder)
Set placeholder text which will appear in the field if it is editable and has no content.- Parameters:
placeholder- The text to set as the placeholder.
-
getPlaceholder
String getPlaceholder()
Get the placeholder text, if explicitly set.- Returns:
- The placeholder text, if set.
-
-