public class CategoryCreateAction extends CommonEditAction
handleEditOperation deve ser redefinido para que seja
criado um painel para a criação da nova categoria.TAG_ACCELERATOR, TAG_MNEMONIC, TAG_NAME, TAG_TOOLTIPchangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
CategoryCreateAction(CommonSelectionPanel selectionPanel,
ImageIcon icon)
Constrói a ação de criação de categorias de algoritmos.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCreation()
Realiza o cancelamento da ação de criar uma categoria.
|
csbase.logic.algorithms.Category |
createCategory(String categoryName)
Cria efetivamente a categoria no servidor.
|
csbase.logic.algorithms.Category |
getParentCategory()
Obtém a categoria pai onde vai ser criada a nova categoria.
|
protected String |
getParentCategoryId()
Obtém o identificador da categoria pai.
|
String |
getParentCategoryName()
Obtém o nome da categoria pai.
|
CategorySelectionPanel |
getSelectionPanel()
Obtém o painel de seleção, onde foi originada essa ação.
|
protected void |
handleEditOperation()
Trata a operação de edição realizada sobre um ou mais dados selecionados.
|
handleActionPerformedactionPerformed, getClassString, getDefaultIcon, getString, getStrokeFromTextgetApplicationaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic CategoryCreateAction(CommonSelectionPanel selectionPanel, ImageIcon icon)
selectionPanel - painel de seleção de dados, onde essa ação foi
originadaicon - imagem da açãoprotected void handleEditOperation()
CommonEditActionhandleEditOperation in class CommonEditActionpublic csbase.logic.algorithms.Category getParentCategory()
protected String getParentCategoryId()
public String getParentCategoryName()
public csbase.logic.algorithms.Category createCategory(String categoryName)
categoryName - nome da categoria a ser criadapublic void cancelCreation()
public CategorySelectionPanel getSelectionPanel()
CommonEditActiongetSelectionPanel in class CommonEditActionCopyright © 2017. All rights reserved.