TagHideColsTag, HideRowsTag, HideSheetTagpublic abstract class BaseHideTag extends BaseTag
A BaseHideTag represents something that can be hidden conditionally.
BaseTag.boolean| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
ATTR_TEST |
Attribute for specifying whether to hide what is to be hidden.
|
ATTR_ON_PROCESSED, SPEC_SEP| Constructor | Description |
|---|---|
BaseHideTag() |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.util.List<java.lang.String> |
getOptionalAttributes() |
Returns a
List of optional attribute names. |
protected java.util.List<java.lang.String> |
getRequiredAttributes() |
Returns a
List of required attribute names. |
boolean |
process() |
If the condition is met, hide something in the workbook.
|
abstract void |
setHidden(boolean hide) |
This method is called if the condition is
true, to hide
something in the workbook. |
void |
validateAttributes() |
Validates the attributes for this
Tag. |
checkAttributes, clearBlock, deleteBlock, getAttributes, getContext, getLocation, getParentTag, getWorkbookContext, isBodiless, processTag, removeBlock, setAttributes, setBodiless, setContext, setParentTag, setWorkbookContextpublic static final java.lang.String ATTR_TEST
protected java.util.List<java.lang.String> getRequiredAttributes()
List of required attribute names.getRequiredAttributes in class BaseTagList of required attribute names.protected java.util.List<java.lang.String> getOptionalAttributes()
List of optional attribute names.getOptionalAttributes in class BaseTagList of optional attribute names.public void validateAttributes()
throws TagParseException
Tag. This tag must have a
body.validateAttributes in class BaseTagTagParseException - If the attribute values are illegal or
unacceptable.public boolean process()
public abstract void setHidden(boolean hide)
true, to hide
something in the workbook.hide - Whether to hide or show.Copyright © 2012–2018 Jett Team. All rights reserved.