📄 permisactionpolicy.java
字号:
actionParameterLabel.setForeground( Color.gray);
actionPanel.add(actionParameterLabel,
new AbsoluteConstraints(10, 30, 60, 30));
actionParameterScrollPanel.setViewportView(actionParameterList);
actionPanel.add(actionParameterScrollPanel,
new AbsoluteConstraints(20, 120, 220, 230));
actionParameterTextField.setFont(new Font("Dialog", 1, 12));
actionParameterTextField.setToolTipText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("act_pol_tt_tf_param"));
//comment here to ungray
actionParameterTextField.setEnabled(false);
actionPanel.add(actionParameterTextField,
new AbsoluteConstraints(70, 30, 170, 30));
actionParameterRemoveButton.setText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("rol_ass_btn_remove"));
actionParameterRemoveButton.setToolTipText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("act_pol_tt_btn_param_remove"));
//comment here to ungray
actionParameterRemoveButton.setEnabled(false);
actionParameterRemoveButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
actionParameterRemoveButtonActionPerformed(evt);
}
});
actionPanel.add(actionParameterRemoveButton,
new AbsoluteConstraints(90, 390, -1, -1));
// actionCreatePanel.add(actionPanel,
// new AbsoluteConstraints(260, 10, 250, 430));
actionOkButton.setMnemonic('o');
actionOkButton.setText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("pol_num_btn_ok"));
actionOkButton.setToolTipText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("pol_num_tt_btn_ok"));
actionOkButton.setMaximumSize(new Dimension(80, 26));
actionOkButton.setMinimumSize(new Dimension(80, 26));
actionOkButton.setPreferredSize(new Dimension(80, 26));
actionOkButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
actionOkButtonActionPerformed(evt);
}
});
actionButtonPanel.add(actionOkButton);
actionCancelButton.setMnemonic('c');
actionCancelButton.setText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("pol_num_btn_cancel"));
actionCancelButton.setToolTipText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("pol_num_tt_btn_cancel"));
actionCancelButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
actionCancelButtonActionPerformed(evt);
}
});
actionButtonPanel.add(actionCancelButton);
actionCloseButton1.setMnemonic('l');
actionCloseButton1.setText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("pol_num_btn_close"));
actionCloseButton1.setToolTipText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("pol_num_tt_btn_close"));
actionCloseButton1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
actionCloseButton1ActionPerformed(evt);
}
});
actionButtonPanel.add(actionCloseButton1);
actionCreatePanel.add(actionButtonPanel,
new AbsoluteConstraints(120, 460, 300, 40));
actionPanel1.setLayout(new AbsoluteLayout());
actionPanel1.setBorder(new TitledBorder(
null,
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("act_pol_brd_action"),
TitledBorder.DEFAULT_JUSTIFICATION,
TitledBorder.DEFAULT_POSITION,
new Font("Dialog", 1, 11)));
actionTextField.setFont(new java.awt.Font("Dialog", 1, 12));
actionTextField.setToolTipText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("act_pol_tt_tf_action"));
actionPanel1.add(actionTextField,
new AbsoluteConstraints(50, 30, 180, 30));
actionAddButton.setText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("soa_pol_btn_add"));
actionAddButton.setToolTipText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("act_pol_tt_btn_action_add"));
actionAddButton.setMaximumSize(new Dimension(80, 26));
actionAddButton.setMinimumSize(new Dimension(80, 26));
actionAddButton.setPreferredSize(new Dimension(80, 26));
actionAddButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
actionAddButtonActionPerformed(evt);
}
});
actionPanel1.add(actionAddButton,
new AbsoluteConstraints(70, 80, -1, -1));
actionNameLabel.setHorizontalAlignment(SwingConstants.LEFT);
actionNameLabel.setFont(new Font("Dialog", 1, 11));
actionNameLabel.setText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("act_pol_lbl_name"));
actionPanel1.add(actionNameLabel,
new AbsoluteConstraints(10, 30, 40, 30));
actionAddScrollPane.setViewportView(actionPolicyList);
actionPanel1.add(actionAddScrollPane,
new AbsoluteConstraints(10, 120, 230, 230));
actionRemoveButton.setText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("rol_ass_btn_remove"));
actionRemoveButton.setToolTipText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("act_pol_tt_btn_action_remove"));
actionRemoveButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
actionRemoveButtonActionPerformed(evt);
}
});
actionPanel1.add(actionRemoveButton,
new AbsoluteConstraints(90, 390, -1, -1));
// actionCreatePanel.add(actionPanel1,
// new AbsoluteConstraints(0, 10, 250, 430));
actionCreatePanel.add(actionPanel1,
new AbsoluteConstraints(140, 10, 250, 430));
actionTabbedPane.addTab(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("sub_pol_tab_cm"), actionCreatePanel);
actionAssignPanel.setLayout(new AbsoluteLayout());
actionListPanel.setLayout(new AbsoluteLayout());
actionListComboBox.setBackground(new Color(255, 255, 255));
actionListComboBox.setEnabled(false);
actionListComboBox.setToolTipText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("act_pol_tt_combo_action_list"));
actionListPanel.add(actionListComboBox,
new AbsoluteConstraints(10, 30, 230, 30));
actionParameterListComboBox.setBackground(new Color(255, 255, 204));
actionParameterListComboBox.setEnabled(false);
actionParameterListComboBox.setToolTipText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("act_pol_tt_combo_param"));
actionListPanel.add(actionParameterListComboBox,
new AbsoluteConstraints(260, 30, 230, 30));
actionParameterListLabel.setHorizontalAlignment(SwingConstants.CENTER);
actionParameterListLabel.setText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("act_pol_lbl_param_list"));
actionListPanel.add(actionParameterListLabel,
new AbsoluteConstraints(260, 10, 230, -1));
actionListLabel.setHorizontalAlignment(SwingConstants.CENTER);
actionListLabel.setText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("act_pol_lbl_action_list"));
actionListPanel.add(actionListLabel,
new AbsoluteConstraints(10, 10, 230, -1));
actionAssignButton.setMnemonic('A');
actionAssignButton.setText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("act_pol_btn_assign"));
actionAssignButton.setMaximumSize(new Dimension(70, 26));
actionAssignButton.setMinimumSize(new Dimension(70, 26));
actionAssignButton.setPreferredSize(new Dimension(70, 26));
actionAssignButton.setEnabled(false);
actionAssignButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
actionAssignButtonActionPerformed(evt);
}
});
actionListPanel.add(actionAssignButton,
new AbsoluteConstraints(211, 76, 90, 30));
actionAssignPanel.add(actionListPanel,
new AbsoluteConstraints(10, 20, 500, 120));
actionAssignmentPanel.setLayout(new AbsoluteLayout());
actionNameParameterList.setEnabled(false);
actionAssignmentScrollPane.setViewportView(actionNameParameterList);
actionAssignmentPanel.add(actionAssignmentScrollPane,
new AbsoluteConstraints(10, 10, 480, 210));
actionAssignPanel.add(actionAssignmentPanel,
new AbsoluteConstraints(10, 160, 500, 230));
assignmentOkButton.setMnemonic('o');
actionOkButton.setText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("pol_num_btn_ok"));
actionOkButton.setToolTipText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("pol_num_tt_btn_ok"));
assignmentOkButton.setMaximumSize(new Dimension(80, 26));
assignmentOkButton.setMinimumSize(new Dimension(80, 26));
assignmentOkButton.setPreferredSize(new Dimension(80, 26));
assignmentOkButton.setEnabled(false);
assignmentOkButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
assignmentOkButtonActionPerformed(evt);
}
});
actionButtonsPanel.add(assignmentOkButton);
actionDeleteButton1.setMnemonic('D');
actionDeleteButton1.setText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("sub_pol_btn_v_del"));
actionDeleteButton1.setToolTipText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("sub_pol_tt_btn_v_del"));
actionDeleteButton1.setEnabled(false);
actionDeleteButton1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
actionDeleteButton1ActionPerformed(evt);
}
});
actionButtonsPanel.add(actionDeleteButton1);
actionCloseButton.setMnemonic('l');
actionCloseButton.setText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("pol_num_btn_close"));
actionCloseButton.setToolTipText(
ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
getString("pol_num_tt_btn_close"));
actionCloseButton.setMaximumSize(new Dimension(80, 26));
actionCloseButton.setMinimumSize(new Dimension(80, 26));
actionCloseButton.setPreferredSize(new Dimension(80, 26));
actionCloseButton.setEnabled(false);
actionCloseButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
actionCloseButtonActionPerformed(evt);
}
});
actionButtonsPanel.add(actionCloseButton);
actionAssignPanel.add(actionButtonsPanel,
new AbsoluteConstraints(120, 430, 300, 40));
//actionTabbedPane.addTab(
// ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
// getString("Assignment"), actionAssignPanel);
actionPolicyInternalFrame.getContentPane().add(actionTabbedPane,
new AbsoluteConstraints(0, 0, 530, 540));
add(actionPolicyInternalFrame, BorderLayout.CENTER);
actionPolicyInternalFrame.show();
//setSize(530, 679);
setSize(630, 779);
actionPolicyInternalFrame.setBounds(255, 50, 530, 570);
add(actionPolicyInternalFrame);
setBackground(new Color(153, 153, 204));
setLocation(150, 45);
actionTextField.requestFocus();
return actionPolicyInternalFrame;
}
/**************************************************************************\
* actionCloseButtonActionPerformed *
\**************************************************************************/
/**
* Closes the Action Policy window.
*
* @param evt Close button operated.
*/
private void actionCloseButtonActionPerformed(ActionEvent evt)
{
actionPolicyInternalFrame.setVisible(false);
}
/**************************************************************************\
* actionDeleteButton1ActionPerformed *
\**************************************************************************/
/**
* To be implemented.
* @param evt Delete button operated.
*/
private void actionDeleteButton1ActionPerformed(ActionEvent evt)
{
// To be implemented
}
/**************************************************************************\
* assignmentOkButtonActionPerformed *
\**************************************************************************/
/**
* To be implemented.
* @param evt OK button operated.
*/
private void assignmentOkButtonActionPerformed(ActionEvent evt)
{
// Not yet implemented
}
/**************************************************************************\
* actionAssignButtonActionPerformed *
\**************************************************************************/
/**
* To be implemented.
*
* @param evt Assign button operated.
*/
private void actionAssignButtonActionPerformed(ActionEvent evt)
{
// Not yet implemented
}
/**************************************************************************\
* actionRemoveButtonActionPerformed *
\**************************************************************************/
/**
* Deletes the selected item from the Action list.
*
* @param evt Remove button operated.
*/
private void actionRemoveButtonActionPerformed(ActionEvent evt)
{
RemoveFromList deleteItem = new RemoveFromList();
removeItem(actionPolicyList, actionRemoveButton);
performRefresh();
/* Object item = deleteItem.removeItemComboBox( actionRemoveButton,
actionPolicyListModel,
actionPolicyList,
null);
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -