Tabnine Logo
Panel.onEvent
Code IndexAdd Tabnine to your IDE (free)

How to use
onEvent
method
in
org.apache.wicket.markup.html.panel.Panel

Best Java code snippets using org.apache.wicket.markup.html.panel.Panel.onEvent (Showing top 8 results out of 315)

origin: theonedev/onedev

@Override
public void onEvent(IEvent<?> event) {
  super.onEvent(event);
  if (event.getPayload() instanceof MoreInfoSideOpened) {
    MoreInfoSideOpened moreInfoSideOpened = (MoreInfoSideOpened) event.getPayload();
    String script = String.format("$('#%s').show('slide', {direction: 'right', duration: 200});", getMarkupId());
    moreInfoSideOpened.getHandler().appendJavaScript(script);
  }
}
origin: theonedev/onedev

@Override
public void onEvent(IEvent<?> event) {
  super.onEvent(event);
  if (event.getPayload() instanceof SavedQueriesOpened) {
    SavedQueriesOpened savedQueriesOpened = (SavedQueriesOpened) event.getPayload();
    toggle(savedQueriesOpened.getHandler());
  }
}

origin: theonedev/onedev

@Override
public void onEvent(IEvent<?> event) {
  super.onEvent(event);
  if (event.getPayload() instanceof BlobNameChanging) {
    BlobNameChanging payload = (BlobNameChanging) event.getPayload();
    onBlobChange(payload.getHandler());
  }
}
origin: theonedev/onedev

@Override
public void onEvent(IEvent<?> event) {
  super.onEvent(event);
  if (event.getPayload() instanceof BlobNameChanging) {
    /*
     * Blob name is changing and current editor might be inappropriate for current  
     * blob name, so we need to re-create the editor if the form does not have 
     * any change yet
     */
    BlobNameChanging payload = (BlobNameChanging) event.getPayload();
    String script = String.format("onedev.server.blobEdit.onNameChanging('%s', %s, %s);", 
        getMarkupId(), context.getMode() == Mode.ADD, recreateBehavior.getCallbackFunction());
    payload.getHandler().appendJavaScript(script);
  }
}
origin: apache/syncope

super.onEvent(event);
origin: apache/syncope

  @Override
  public void onEvent(final IEvent<?> event) {
    if (event.getPayload() instanceof SearchClausePanel.SearchEvent) {
      final AjaxRequestTarget target = SearchClausePanel.SearchEvent.class.cast(event.getPayload()).
          getTarget();
      final String fiql = SearchUtils.buildFIQL(anyObjectSearchPanel.getModel().getObject(),
          SyncopeClient.getAnyObjectSearchConditionBuilder(anyObjectSearchPanel.getBackObjectType()));
      AnyDirectoryPanel.class.cast(Specification.this.anyObjectDirectoryPanel).search(fiql, target);
    } else if (event.getPayload() instanceof AnySelectionDirectoryPanel.ItemSelection) {
      final AjaxRequestTarget target = AnySelectionDirectoryPanel.ItemSelection.class.cast(event.
          getPayload()).getTarget();
      AnyTO right = AnySelectionDirectoryPanel.ItemSelection.class.cast(event.getPayload()).getSelection();
      rel.setOtherEndKey(right.getKey());
      Relationships.this.addNewRelationships(rel);
      Relationships.this.addOrReplace(getViewFragment().setRenderBodyOnly(true));
      target.add(Relationships.this);
    } else {
      super.onEvent(event);
    }
  }
}
origin: theonedev/onedev

@Override
public void onEvent(IEvent<?> event) {
  super.onEvent(event);
origin: apache/syncope

super.onEvent(event);
org.apache.wicket.markup.html.panelPanelonEvent

Popular methods of Panel

  • renderHead
    Check the associated markup file for a wicket header tag
  • onBeforeRender
  • onInitialize
  • onConfigure
  • onComponentTag
  • onDetach
  • setOutputMarkupId
  • setVisible
  • add
  • setDefaultModel
  • onAfterRender
  • detachModel
  • onAfterRender,
  • detachModel,
  • detachModels,
  • getId,
  • onModelChanged,
  • remove,
  • replaceWith,
  • getMarkupId,
  • onComponentTagBody,
  • setMarkupId

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • onCreateOptionsMenu (Activity)
  • Menu (java.awt)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Kernel (java.awt.image)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now