Skip to content

Commit

Permalink
select this folder only. close #1039
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Dec 7, 2023
1 parent d2e3996 commit 1762083
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
<Property name="useNullLayout" type="boolean" value="true"/>
</Layout>
<SubComponents>
<MenuItem class="javax.swing.JMenuItem" name="mnuSelectThisOnly">
<Properties>
<Property name="text" type="java.lang.String" value="nur diesen ausw&#xe4;hlen"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="mnuSelectThisOnlyActionPerformed"/>
</Events>
</MenuItem>
<MenuItem class="javax.swing.JMenuItem" name="mnuEdit">
<Properties>
<Property name="text" type="java.lang.String" value="umbenennen"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ You should also get your employer (if you work as a programmer) or school,
*/
public class FolderListCell extends javax.swing.JPanel implements DropTargetListener {

private static Logger log = Logger.getLogger(FolderListCell.class.getName());
private static final Logger log = Logger.getLogger(FolderListCell.class.getName());

private CaseFolder folder = null;
protected CaseFolder parentFolder = null;
Expand All @@ -711,6 +711,10 @@ public class FolderListCell extends javax.swing.JPanel implements DropTargetList

/**
* Creates new form FolderCell
* @param parent
* @param level
* @param name
* @param readOnly
*/
public FolderListCell(FoldersListPanel parent, int level, String name, boolean readOnly) {
initComponents();
Expand Down Expand Up @@ -790,6 +794,7 @@ public void addExpandedListener(MouseListener ml) {
private void initComponents() {

popFolder = new javax.swing.JPopupMenu();
mnuSelectThisOnly = new javax.swing.JMenuItem();
mnuEdit = new javax.swing.JMenuItem();
mnuDelete = new javax.swing.JMenuItem();
mnuCreate = new javax.swing.JMenuItem();
Expand All @@ -798,6 +803,14 @@ private void initComponents() {
lblExpanded = new javax.swing.JLabel();
txtFolderName = new javax.swing.JTextField();

mnuSelectThisOnly.setText("nur diesen auswählen");
mnuSelectThisOnly.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
mnuSelectThisOnlyActionPerformed(evt);
}
});
popFolder.add(mnuSelectThisOnly);

mnuEdit.setText("umbenennen");
mnuEdit.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
Expand Down Expand Up @@ -858,7 +871,6 @@ public void mouseClicked(java.awt.event.MouseEvent evt) {
txtFolderName.setFont(txtFolderName.getFont().deriveFont(txtFolderName.getFont().getStyle() | java.awt.Font.BOLD));
txtFolderName.setText("jTextField1");
txtFolderName.setBorder(null);
txtFolderName.setOpaque(false);
txtFolderName.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
txtFolderNameMouseClicked(evt);
Expand Down Expand Up @@ -987,6 +999,12 @@ private void txtFolderNameMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIR
this.parent.selectionChanged();
}//GEN-LAST:event_txtFolderNameMouseClicked

private void mnuSelectThisOnlyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuSelectThisOnlyActionPerformed
this.parent.selectAll(false);
setSelected(true);
this.parent.selectionChanged();
}//GEN-LAST:event_mnuSelectThisOnlyActionPerformed


// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton cmdMore;
Expand All @@ -995,6 +1013,7 @@ private void txtFolderNameMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIR
private javax.swing.JMenuItem mnuCreate;
private javax.swing.JMenuItem mnuDelete;
private javax.swing.JMenuItem mnuEdit;
private javax.swing.JMenuItem mnuSelectThisOnly;
private javax.swing.JPopupMenu popFolder;
private javax.swing.JTextField txtFolderName;
// End of variables declaration//GEN-END:variables
Expand Down

0 comments on commit 1762083

Please sign in to comment.