예제 #1
0
 /**
  * Lays out the buttons.
  *
  * @param buttons the button row
  */
 @Override
 protected void layoutButtons(ButtonSet buttons) {
   super.layoutButtons(buttons);
   buttons.add(createPostButton());
   buttons.add(createPreviewButton());
 }
예제 #2
0
 /**
  * Enables/disables the buttons that require an object to be selected.
  *
  * @param buttons the button set
  * @param enable determines if buttons should be enabled
  */
 @Override
 protected void enableButtons(ButtonSet buttons, boolean enable) {
   super.enableButtons(buttons, enable);
   buttons.setEnabled(POST_ID, enable);
   buttons.setEnabled(PREVIEW_ID, enable);
 }