Example usage for com.google.gwt.query.client GQuery siblings

List of usage examples for com.google.gwt.query.client GQuery siblings

Introduction

In this page you can find the example usage for com.google.gwt.query.client GQuery siblings.

Prototype

public GQuery siblings(String... selectors) 

Source Link

Document

Get a set of elements containing all of the unique siblings of each of the matched set of elements filtered by the provided set of selectors.

Usage

From source file:be.dramaix.ai.slidingpuzzle.client.ConfigPanel.java

License:Apache License

private void onDimensionChange(int newDimension) {
    GQuery algorithmSelector = SELECTOR.getAlgorithmSelectElement();
    GQuery algorithmSelectorSpan = algorithmSelector.siblings("span");
    GQuery heuristicSelectorRow = SELECTOR.getHeuristicSelectElement().parent().parent();

    if (newDimension == 4) {
        algorithmType = AlgorithmType.IDA_STAR;

        algorithmSelector.val(AlgorithmType.IDA_STAR.name());
        algorithmSelector.hide();/* w w w. ja  v  a2 s .c o  m*/
        algorithmSelectorSpan.text(AlgorithmType.IDA_STAR.getLabel());

        heuristicSelectorRow.show();
    } else {
        algorithmSelectorSpan.text("");
        algorithmSelector.show();

    }

    SELECTOR.getSolveButton().hide();
    SELECTOR.getPlayButton().hide();

}