Package edu.wpi.grip.ui.util
Class StyleClassNameUtility
- java.lang.Object
-
- edu.wpi.grip.ui.util.StyleClassNameUtility
-
public final class StyleClassNameUtility extends java.lang.Object
Creates CSS style classes and ID's for nodes. This makes it possible to use CSS selectors to retrieve nodes in unit tests.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
classNameFor(Connection connection)
Return the CSS class name for a connection.static java.lang.String
classNameFor(Step step)
Return the CSS class name for a step.static java.lang.String
classNameForStepHolding(OperationDescription operation)
static java.lang.String
cssSelectorForInputSocketHandleOn(Step step)
static java.lang.String
cssSelectorForInputSocketHandleOnStepHolding(OperationDescription operation)
static java.lang.String
cssSelectorForOutputSocketHandleOn(Step step)
static java.lang.String
cssSelectorForOutputSocketHandleOnStepHolding(OperationDescription operation)
static java.lang.String
idNameFor(OperationDescription operationDescription)
The CSS id name for an operation.
-
-
-
Method Detail
-
idNameFor
public static java.lang.String idNameFor(OperationDescription operationDescription)
The CSS id name for an operation. To use as a css selector then prepend the string with a '#'.- Parameters:
operationDescription
- the description of the operation.- Returns:
- The CSS id for the operation.
-
classNameFor
public static java.lang.String classNameFor(Step step)
Return the CSS class name for a step. To use as a css selector then prepend the string with a '.'.- Parameters:
step
- The step to get the class name for- Returns:
- The CSS class for the step in the pipeline.
-
classNameFor
public static java.lang.String classNameFor(Connection connection)
Return the CSS class name for a connection. To use as a css selector then prepend the string with a '.'.- Parameters:
connection
- The connection to get the class name for.- Returns:
- The CSS class for the connection in the pipeline.
-
classNameForStepHolding
public static java.lang.String classNameForStepHolding(OperationDescription operation)
Return the CSS Class name for aStep
that holds thisOperation
. To use as a css selector then prepend the string with a '.'.- Parameters:
operation
- The operation to get the step's class name for- Returns:
- The CSS class for this step.
-
cssSelectorForOutputSocketHandleOnStepHolding
public static java.lang.String cssSelectorForOutputSocketHandleOnStepHolding(OperationDescription operation)
-
cssSelectorForInputSocketHandleOnStepHolding
public static java.lang.String cssSelectorForInputSocketHandleOnStepHolding(OperationDescription operation)
-
cssSelectorForOutputSocketHandleOn
public static java.lang.String cssSelectorForOutputSocketHandleOn(Step step)
-
cssSelectorForInputSocketHandleOn
public static java.lang.String cssSelectorForInputSocketHandleOn(Step step)
-
-