Search in sources :

Example 1 with Orientation

use of org.talend.designer.runtime.visualization.internal.actions.ToggleOrientationAction.Orientation in project tdi-studio-se by Talend.

the class AbstractSashForm method getOrientationActions.

/**
     * Gets the orientation actions.
     * 
     * @return The orientation actions
     */
public List<ToggleOrientationAction> getOrientationActions() {
    if (orientationActions == null) {
        orientationActions = new ArrayList<ToggleOrientationAction>();
        for (Orientation orientation : Orientation.values()) {
            ToggleOrientationAction action = new ToggleOrientationAction(this, orientation);
            orientationActions.add(action);
            if (action.isChecked()) {
                updateOrientation(orientation);
                currentOrientation = orientation;
            }
        }
    }
    return orientationActions;
}
Also used : ToggleOrientationAction(org.talend.designer.runtime.visualization.internal.actions.ToggleOrientationAction) Orientation(org.talend.designer.runtime.visualization.internal.actions.ToggleOrientationAction.Orientation)

Aggregations

ToggleOrientationAction (org.talend.designer.runtime.visualization.internal.actions.ToggleOrientationAction)1 Orientation (org.talend.designer.runtime.visualization.internal.actions.ToggleOrientationAction.Orientation)1