示例#1
0
  private void addConsoleAppenderPerformed(AjaxRequestTarget target) {
    LoggingDto dto = getModel().getObject();
    AppenderConfiguration appender = new AppenderConfiguration(new AppenderConfigurationType());
    appender.setEditing(true);
    dto.getAppenders().add(appender);

    target.add(getAppendersTable());
  }
示例#2
0
 private void deleteAppenderPerformed(AjaxRequestTarget target) {
   Iterator<AppenderConfiguration> iterator = getModel().getObject().getAppenders().iterator();
   while (iterator.hasNext()) {
     AppenderConfiguration item = iterator.next();
     if (item.isSelected()) {
       iterator.remove();
     }
   }
   target.add(getAppendersTable());
 }
示例#3
0
 private void appenderEditPerformed(
     AjaxRequestTarget target, IModel<AppenderConfiguration> model) {
   AppenderConfiguration config = model.getObject();
   config.setEditing(true);
   target.add(getAppendersTable());
 }