📄 permisdynamiccontexthelp.java
字号:
/*
* Copyright (c) 2000-2005, University of Salford
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of the University of Salford nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* PermisDynamicContextHelp.java
*
* Created on 28 May 2004, 11:23
*/
package issrg.editor.gui;
import javax.swing.JLayeredPane;
import javax.swing.JInternalFrame;
import java.awt.BorderLayout;
import org.netbeans.lib.awtextra.AbsoluteLayout;
/**
*
* @author issrg
*/
public class PermisDynamicContextHelp extends PermisPolicyPanel {
private PermisPolicyEditorMain permisParent;
private JInternalFrame PermisHelpInternalFrame;
/** Creates a new instance of PermisDynamicContextHelp */
public PermisDynamicContextHelp(PermisPolicyEditorMain permisParent) {
this.permisParent = permisParent;
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
public JInternalFrame createPolicy() {
contextPanel = new javax.swing.JPanel();
contextTextArea = new javax.swing.JTextArea();
imageButton = new javax.swing.JButton();
PermisHelpInternalFrame= new JInternalFrame();
setLayout(new BorderLayout());
PermisHelpInternalFrame.getContentPane().setLayout(new BorderLayout());
PermisHelpInternalFrame.setTitle("Dynamic Context Help");
contextPanel.setLayout(new java.awt.BorderLayout());
contextTextArea.setEditable(false);
contextTextArea.setLineWrap(true);
contextTextArea.setWrapStyleWord(true);
contextPanel.add(contextTextArea, java.awt.BorderLayout.CENTER);
imageButton.setBackground(new java.awt.Color(255, 255, 255));
imageButton.setFont(new java.awt.Font("Dialog", 1, 14));
imageButton.setIcon(new javax.swing.ImageIcon("C:\\CVSdefault\\issrg\\editor\\gui\\permis.gif"));
imageButton.setText("Close");
imageButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
imageButtonActionPerformed(evt);
}
});
contextPanel.add(imageButton, java.awt.BorderLayout.WEST);
imageButton.getAccessibleContext().setAccessibleName("imageButton");
contextPanel.setBounds(0, 0, 679, 70);
// add(contextPanel, java.awt.BorderLayout.CENTER);
//PermisPolicyEditorMain.policyDesktopPane.add(this,
//JLayeredPane.DEFAULT_LAYER);
PermisHelpInternalFrame.getContentPane().add(contextPanel);
add(PermisHelpInternalFrame, BorderLayout.CENTER);
PermisHelpInternalFrame.show();
setSize(80, 679);
PermisHelpInternalFrame.setBounds(0, 0, 779, 80);
add(PermisHelpInternalFrame);
// setBackground(new Color(153, 153, 204));
setLocation(0, 4);
return PermisHelpInternalFrame;
}
private void imageButtonActionPerformed(java.awt.event.ActionEvent evt) {
permisParent.getMenuItems().setButtonTitle("Dynamic Help");
PermisHelpInternalFrame.setVisible(false);
}
public void performRefresh() {
}
// Variables declaration - do not modify
private javax.swing.JPanel contextPanel;
private javax.swing.JTextArea contextTextArea;
private javax.swing.JButton imageButton;
// End of variables declaration
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -