/** * Sets the left button to be the given button. Any existing button is removed. * * @param button - the button to set on the left slot */ @UiChild(tagname="leftButton", limit=1) public void setLeftButton(JQMButton button) { if (left != null) remove(left); button.setPosOnBand(PosOnBand.LEFT); left = button; insert(left, 0); }
/** * Sets the right button to be the given button. Any existing button is removed. * * @param button - the button to set on the right slot */ @UiChild(tagname="rightButton", limit=1) public void setRightButton(JQMButton button) { if (right != null) remove(right); button.setPosOnBand(PosOnBand.RIGHT); right = button; add(right); }
/** * Sets the left button to be the given button. Any existing button is removed. * * @param button - the button to set on the left slot */ @UiChild(tagname="leftButton", limit=1) public void setLeftButton(JQMButton button) { if (left != null) remove(left); button.setPosOnBand(PosOnBand.LEFT); left = button; insert(left, 0); }
/** * Sets the right button to be the given button. Any existing button is removed. * * @param button - the button to set on the right slot */ @UiChild(tagname="rightButton", limit=1) public void setRightButton(JQMButton button) { if (right != null) remove(right); button.setPosOnBand(PosOnBand.RIGHT); right = button; add(right); }
/** * Sets the right button to be the given button. Any existing button is removed. * * @param button - the button to set on the right slot */ @UiChild(tagname="rightButton", limit=1) public void setRightButton(JQMButton button) { if (right != null) remove(right); button.setPosOnBand(PosOnBand.RIGHT); right = button; add(right); }
/** * Sets the left button to be the given button. Any existing button is removed. * * @param button - the button to set on the left slot */ @UiChild(tagname="leftButton", limit=1) public void setLeftButton(JQMButton button) { if (left != null) remove(left); button.setPosOnBand(PosOnBand.LEFT); left = button; insert(left, 0); }