Package wicketdnd

Examples of wicketdnd.DragSource


        Item<Foo> item = super.newRowItem(id, index, model);
        item.setOutputMarkupId(true);
        return item;
      }
    };
    table.add(new DragSource()
    {
      @Override
      public Set<Operation> getOperations()
      {
        return dragOperations();
View Full Code Here


        Component component = super.newContentComponent(arg0, arg1);
        component.setOutputMarkupId(true);
        return component;
      }
    };
    tree.add(new DragSource()
    {
      @Override
      public Set<Operation> getOperations()
      {
        return dragOperations();
View Full Code Here

  {
    super(id);

    final WebMarkupContainer container = new WebMarkupContainer("container");
    add(container);
    container.add(new DragSource()
    {
      @Override
      public Set<Operation> getOperations()
      {
        return dragOperations();
View Full Code Here

      {
        item.add(new Label("name", new PropertyModel<String>(item.getModel(), "name")));
      }
    };
    list.add(items);
    list.add(new DragSource()
    {
      @Override
      public Set<Operation> getOperations()
      {
        return dragOperations();
View Full Code Here

    final TableTree<Foo> tabletree = new DefaultTableTree<Foo>("tabletree", columns(),
        provider, Integer.MAX_VALUE);
    // reuse items or drop following expansion will fail due to new
    // markup ids
    tabletree.setItemReuseStrategy(new ReuseIfModelsEqualStrategy());
    tabletree.add(new DragSource()
    {
      @Override
      public Set<Operation> getOperations()
      {
        return dragOperations();
View Full Code Here

        @Override
        protected Component newLabelComponent(String id, final IModel<FlvRecording> lm) {
          FlvRecording r = lm.getObject();
          Component result = r.isFolder() || r.getFlvRecordingId() < 1 ? new RecordingPanel(id, lm) : new RecordingItemPanel(id, lm, errorsDialog);
          if (r.getFlvRecordingId() > 0) {
            result.add(new DragSource(Operation.MOVE) {
              private static final long serialVersionUID = 1L;

              @Override
              public void onBeforeDrop(Component drag, Transfer transfer) throws Reject {
                transfer.setData(lm.getObject());
View Full Code Here

        @Override
        protected Component newLabelComponent(String id, final IModel<FlvRecording> lm) {
          FlvRecording r = lm.getObject();
          Component result = r.isFolder() || r.getFlvRecordingId() < 1 ? new RecordingPanel(id, lm) : new RecordingItemPanel(id, lm, errorsDialog);
          if (r.getFlvRecordingId() > 0) {
            result.add(new DragSource(Operation.MOVE) {
              private static final long serialVersionUID = 1L;

              @Override
              public void onBeforeDrop(Component drag, Transfer transfer) throws Reject {
                transfer.setData(lm.getObject());
View Full Code Here

        @Override
        protected Component newLabelComponent(String id, final IModel<FlvRecording> lm) {
          FlvRecording r = lm.getObject();
          Component result = r.isFolder() || r.getFlvRecordingId() < 1 ? new RecordingPanel(id, lm) : new RecordingItemPanel(id, lm, errorsDialog);
          if (r.getFlvRecordingId() > 0) {
            result.add(new DragSource(Operation.MOVE) {
              private static final long serialVersionUID = 1L;

              @Override
              public void onBeforeDrop(Component drag, Transfer transfer) throws Reject {
                transfer.setData(lm.getObject());
View Full Code Here

TOP

Related Classes of wicketdnd.DragSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.