.addComponent(tbDetailToolbar, GroupLayout.PREFERRED_SIZE, 34, GroupLayout.PREFERRED_SIZE))
);
spListDetails.setRightComponent(pnlObjectDetail);
tblObjectList.setModel(new SafeDefaultTableModel());
tblObjectList.addMouseListener(new MouseAdapter() {
public void mousePressed(MouseEvent evt) {
treeManagementMousePressed(evt);
}
public void mouseReleased(MouseEvent evt) {
treeManagementMousePressed(evt);
}
public void mouseClicked(MouseEvent evt) {
tblObjectListMouseClicked(evt);
}
});
tblObjectList.addKeyListener(new KeyAdapter() {
public void keyPressed(KeyEvent evt) {
tblObjectListKeyPressed(evt);
}
});
spObjectList.setViewportView(tblObjectList);
GroupLayout pnlObjectListLayout = new GroupLayout(pnlObjectList);
pnlObjectList.setLayout(pnlObjectListLayout);
pnlObjectListLayout.setHorizontalGroup(
pnlObjectListLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addComponent(fpObjectList, GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)
.addComponent(spObjectList, GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)
);
pnlObjectListLayout.setVerticalGroup(
pnlObjectListLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(pnlObjectListLayout.createSequentialGroup()
.addComponent(fpObjectList, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(spObjectList, GroupLayout.DEFAULT_SIZE, 166, Short.MAX_VALUE))
);
spListDetails.setLeftComponent(pnlObjectList);
tpDetailsEmployees.addTab(lang.getString("Detail"), TAB_DETAIL_ICON, spListDetails);
spEmployeeDetails.setBorder(null);
spEmployeeDetails.setDividerLocation(200);
spEmployeeDetails.setOrientation(JSplitPane.VERTICAL_SPLIT);
spEmployee.setBorder(null);
tbEmployeeToolbar.setFloatable(false);
tbEmployeeToolbar.setRollover(true);
btnAddEmployee.setIcon(new ImageIcon(getClass().getResource("/com/art/anette/client/ui/resources/add.png"))); // NOI18N
btnAddEmployee.setText(lang.getString("Add")); // NOI18N
btnAddEmployee.setEnabled(false);
btnAddEmployee.setFocusable(false);
btnAddEmployee.setMargin(new Insets(8, 8, 8, 8));
btnAddEmployee.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
btnAddEmployeeActionPerformed(evt);
}
});
tbEmployeeToolbar.add(btnAddEmployee);
btnEditEmployee.setIcon(new ImageIcon(getClass().getResource("/com/art/anette/client/ui/resources/edit.png"))); // NOI18N
btnEditEmployee.setText(lang.getString("Edit")); // NOI18N
btnEditEmployee.setEnabled(false);
btnEditEmployee.setFocusable(false);
btnEditEmployee.setMargin(new Insets(8, 8, 8, 8));
btnEditEmployee.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
btnEditEmployeeActionPerformed(evt);
}
});
tbEmployeeToolbar.add(btnEditEmployee);
btnDeleteEmployee.setIcon(new ImageIcon(getClass().getResource("/com/art/anette/client/ui/resources/delete.png"))); // NOI18N
btnDeleteEmployee.setText(lang.getString("Delete")); // NOI18N
btnDeleteEmployee.setEnabled(false);
btnDeleteEmployee.setFocusable(false);
btnDeleteEmployee.setMargin(new Insets(8, 8, 8, 8));
btnDeleteEmployee.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
btnDeleteEmployeeActionPerformed(evt);
}
});
tbEmployeeToolbar.add(btnDeleteEmployee);
GroupLayout pnlEmployeeDetailLayout = new GroupLayout(pnlEmployeeDetail);
pnlEmployeeDetail.setLayout(pnlEmployeeDetailLayout);
pnlEmployeeDetailLayout.setHorizontalGroup(
pnlEmployeeDetailLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addComponent(tbEmployeeToolbar, GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
.addComponent(spEmployee, GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)
);
pnlEmployeeDetailLayout.setVerticalGroup(
pnlEmployeeDetailLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(GroupLayout.Alignment.TRAILING, pnlEmployeeDetailLayout.createSequentialGroup()
.addComponent(spEmployee, GroupLayout.DEFAULT_SIZE, 177, Short.MAX_VALUE)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(tbEmployeeToolbar, GroupLayout.PREFERRED_SIZE, 34, GroupLayout.PREFERRED_SIZE))
);
spEmployeeDetails.setRightComponent(pnlEmployeeDetail);
tblEmployees.setModel(new SafeDefaultTableModel());
tblEmployees.addMouseListener(new MouseAdapter() {
public void mousePressed(MouseEvent evt) {
tblEmployeesMousePressed(evt);
}
public void mouseReleased(MouseEvent evt) {
tblEmployeesMousePressed(evt);
}
public void mouseClicked(MouseEvent evt) {
tblEmployeesMouseClicked(evt);
}
});
tblEmployees.addKeyListener(new KeyAdapter() {
public void keyPressed(KeyEvent evt) {
tblEmployeesKeyPressed(evt);
}
});
spEmployees.setViewportView(tblEmployees);
GroupLayout pnlEmployeeListLayout = new GroupLayout(pnlEmployeeList);
pnlEmployeeList.setLayout(pnlEmployeeListLayout);
pnlEmployeeListLayout.setHorizontalGroup(
pnlEmployeeListLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addComponent(fpEmployees, GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)
.addComponent(spEmployees, GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)
);
pnlEmployeeListLayout.setVerticalGroup(
pnlEmployeeListLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(pnlEmployeeListLayout.createSequentialGroup()
.addComponent(fpEmployees, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(spEmployees, GroupLayout.DEFAULT_SIZE, 166, Short.MAX_VALUE))
);
spEmployeeDetails.setLeftComponent(pnlEmployeeList);
tpDetailsEmployees.addTab(lang.getString("Employees"), TAB_EMP_ICON, spEmployeeDetails); // NOI18N
spManagement.setRightComponent(tpDetailsEmployees);
tpTabs.addTab("Management", spManagement);
lblDescNewTask.setText(lang.getString("StartNewTask")); // NOI18N
lblDescNewTask.setEnabled(false);
lblDescTaskNew.setText(lang.getString("Task")); // NOI18N
btnStartTask.setIcon(new ImageIcon(getClass().getResource("/com/art/anette/client/ui/resources/newtask.png"))); // NOI18N
btnStartTask.setText(lang.getString("StartThisTask")); // NOI18N
btnStartTask.setEnabled(false);
btnBrowseTasks.setText("...");
lblDescOpenTasks.setText(lang.getString("OpenTasks")); // NOI18N
lblDescOpenTasks.setEnabled(false);
tblOpenTasks.setModel(new SafeDefaultTableModel());
spOpenTasks.setViewportView(tblOpenTasks);
btnStopOpenTask.setIcon(new ImageIcon(getClass().getResource("/com/art/anette/client/ui/resources/stop.png"))); // NOI18N
btnStopOpenTask.setText(lang.getString("StopTask")); // NOI18N
btnStopOpenTask.setEnabled(false);
lblDescCurrentTask.setText(lang.getString("CurrentTask")); // NOI18N
lblDescCurrentTask.setEnabled(false);
lblDescTaskCurrent.setText(lang.getString("Task")); // NOI18N
lblDescStarted.setText(lang.getString("Started")); // NOI18N
lblDescTimeElapsed.setText(lang.getString("TimeElapsed")); // NOI18N
lblTask.setText("-");
lblStarted.setText("-");
lblTimeElapsed.setText("-");
btnStop.setIcon(new ImageIcon(getClass().getResource("/com/art/anette/client/ui/resources/stop.png"))); // NOI18N
btnStop.setText(lang.getString("Stop")); // NOI18N
btnStop.setEnabled(false);
btnPause.setIcon(new ImageIcon(getClass().getResource("/com/art/anette/client/ui/resources/pause.png"))); // NOI18N
btnPause.setText(lang.getString("Pause")); // NOI18N
btnPause.setEnabled(false);
btnPause.setMargin(new Insets(0, 2, 0, 2));
btnResumeOpenTask.setIcon(new ImageIcon(getClass().getResource("/com/art/anette/client/ui/resources/resume.png"))); // NOI18N
btnResumeOpenTask.setText(lang.getString("ResumeTask")); // NOI18N
btnResumeOpenTask.setEnabled(false);
GroupLayout pnlTimeTrackerLayout = new GroupLayout(pnlTimeTracker);
pnlTimeTracker.setLayout(pnlTimeTrackerLayout);
pnlTimeTrackerLayout.setHorizontalGroup(
pnlTimeTrackerLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(pnlTimeTrackerLayout.createSequentialGroup()
.addGroup(pnlTimeTrackerLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(pnlTimeTrackerLayout.createSequentialGroup()
.addGap(65, 65, 65)
.addComponent(lblDescTaskCurrent))
.addGroup(pnlTimeTrackerLayout.createSequentialGroup()
.addGap(51, 51, 51)
.addComponent(lblDescStarted))
.addGroup(pnlTimeTrackerLayout.createSequentialGroup()
.addGap(12, 12, 12)
.addComponent(lblDescTimeElapsed)))
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addGroup(pnlTimeTrackerLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addComponent(lblTimeElapsed, GroupLayout.DEFAULT_SIZE, 540, Short.MAX_VALUE)
.addComponent(lblStarted, GroupLayout.DEFAULT_SIZE, 540, Short.MAX_VALUE)
.addComponent(lblTask, GroupLayout.DEFAULT_SIZE, 540, Short.MAX_VALUE))
.addContainerGap())
.addGroup(pnlTimeTrackerLayout.createSequentialGroup()
.addGap(97, 97, 97)
.addComponent(btnPause)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(btnStop)
.addContainerGap(409, Short.MAX_VALUE))
.addGroup(GroupLayout.Alignment.TRAILING, pnlTimeTrackerLayout.createSequentialGroup()
.addGap(17, 17, 17)
.addComponent(lblDescCurrentTask)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(sepCurrentTask, GroupLayout.DEFAULT_SIZE, 534, Short.MAX_VALUE)
.addGap(12, 12, 12))
.addGroup(GroupLayout.Alignment.TRAILING, pnlTimeTrackerLayout.createSequentialGroup()
.addGap(105, 105, 105)
.addComponent(spOpenTasks, GroupLayout.DEFAULT_SIZE, 534, Short.MAX_VALUE)
.addGap(12, 12, 12))
.addGroup(GroupLayout.Alignment.TRAILING, pnlTimeTrackerLayout.createSequentialGroup()
.addGap(24, 24, 24)
.addComponent(lblDescOpenTasks)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addGroup(pnlTimeTrackerLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addComponent(sepOpenTasks, GroupLayout.DEFAULT_SIZE, 534, Short.MAX_VALUE)
.addGroup(pnlTimeTrackerLayout.createSequentialGroup()
.addComponent(btnResumeOpenTask)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(btnStopOpenTask)))
.addGap(12, 12, 12))
.addGroup(GroupLayout.Alignment.TRAILING, pnlTimeTrackerLayout.createSequentialGroup()
.addGap(65, 65, 65)
.addComponent(lblDescTaskNew)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addGroup(pnlTimeTrackerLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addComponent(btnStartTask)
.addGroup(pnlTimeTrackerLayout.createSequentialGroup()
.addComponent(cbTasks, 0, 453, Short.MAX_VALUE)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(btnBrowseTasks)))
.addGap(12, 12, 12))
.addGroup(pnlTimeTrackerLayout.createSequentialGroup()
.addContainerGap()
.addComponent(lblDescNewTask)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(sepNewTask, GroupLayout.DEFAULT_SIZE, 534, Short.MAX_VALUE)
.addGap(12, 12, 12))
);
pnlTimeTrackerLayout.setVerticalGroup(
pnlTimeTrackerLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(pnlTimeTrackerLayout.createSequentialGroup()
.addContainerGap()
.addGroup(pnlTimeTrackerLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)
.addComponent(lblDescNewTask)
.addComponent(sepNewTask, GroupLayout.PREFERRED_SIZE, 10, GroupLayout.PREFERRED_SIZE))
.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(pnlTimeTrackerLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addComponent(lblDescTaskNew)
.addComponent(btnBrowseTasks)
.addComponent(cbTasks, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(btnStartTask)
.addGap(18, 18, 18)
.addGroup(pnlTimeTrackerLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)
.addComponent(lblDescOpenTasks)
.addComponent(sepOpenTasks, GroupLayout.PREFERRED_SIZE, 10, GroupLayout.PREFERRED_SIZE))
.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(spOpenTasks, GroupLayout.DEFAULT_SIZE, 107, Short.MAX_VALUE)
.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(pnlTimeTrackerLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addComponent(btnStopOpenTask)
.addComponent(btnResumeOpenTask))
.addGap(18, 18, 18)
.addGroup(pnlTimeTrackerLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)
.addComponent(sepCurrentTask, GroupLayout.PREFERRED_SIZE, 10, GroupLayout.PREFERRED_SIZE)
.addComponent(lblDescCurrentTask))
.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(pnlTimeTrackerLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addComponent(lblDescTaskCurrent)
.addComponent(lblTask))
.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(pnlTimeTrackerLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addComponent(lblDescStarted)
.addComponent(lblStarted))
.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(pnlTimeTrackerLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addComponent(lblDescTimeElapsed)
.addComponent(lblTimeElapsed))
.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(pnlTimeTrackerLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
.addComponent(btnStop)
.addComponent(btnPause))
.addContainerGap())
);
tpTabs.addTab("Time Tracker", pnlTimeTracker);
tpChats.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent evt) {
tpChatsMouseClicked(evt);
}
});
spChat.setBorder(null);
spChat.setDividerLocation(180);
tblUsers.setModel(new SafeDefaultTableModel());
tblUsers.setShowVerticalLines(false);
tblUsers.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent evt) {
tblUsersMouseClicked(evt);
}
});
spUsers.setViewportView(tblUsers);
ResourceBundle bundle = ResourceBundle.getBundle("com/art/anette/client/ui/resources/lang"); // NOI18N
lblDescUsers.setText(bundle.getString("Users")); // NOI18N
GroupLayout pnlUserListLayout = new GroupLayout(pnlUserList);
pnlUserList.setLayout(pnlUserListLayout);
pnlUserListLayout.setHorizontalGroup(
pnlUserListLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(pnlUserListLayout.createSequentialGroup()
.addComponent(lblDescUsers)
.addContainerGap())
.addComponent(spUsers, GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE)
);
pnlUserListLayout.setVerticalGroup(
pnlUserListLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(pnlUserListLayout.createSequentialGroup()
.addComponent(lblDescUsers)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addComponent(spUsers))
);
spChat.setLeftComponent(pnlUserList);
tblLog.setModel(new SafeDefaultTableModel());
tblLog.setShowHorizontalLines(false);
tblLog.setShowVerticalLines(false);
spLog.setViewportView(tblLog);
lblDescLog.setText(bundle.getString("Log")); // NOI18N