public class StringComponent extends Component
Modifier and Type | Field and Description |
---|---|
String |
data
The string representing this component.
|
DEFAULT_SOURCE_COL, index
Constructor and Description |
---|
StringComponent(String data,
int row,
int col)
Creates a string component with row and column data.
|
Modifier and Type | Method and Description |
---|---|
boolean |
dataEquals(String data) |
boolean |
equals(Object c)
Two StringComponents are equal if they have equal component ids.
|
boolean |
isEmpty()
A StringComponent is empty if either its data is empty or it has no component id.
|
protected String |
jsonize() |
String |
toString()
A string representation comprised of the identifier and the relative index.
|
compareTo, getCid, getSourceCol, getSourceRow, hashCode, html, jsonize, makeComponentId, resetCid
public final String data
public StringComponent(String data, int row, int col)
data
- The string representing this component.row
- The input row.col
- The input column.public boolean isEmpty()
public boolean equals(Object c)
public boolean dataEquals(String data)
dataEquals
in class Component
Copyright © 2015. All rights reserved.