use of com.servoy.j2db.persistence.Portal in project servoy-client by Servoy.
the class TableView method onDrag.
public int onDrag(JSDNDEvent event) {
int onDragID = 0;
if (cellview instanceof Portal) {
Portal cellviewPortal = (Portal) cellview;
onDragID = cellviewPortal.getOnDragMethodID();
} else {
onDragID = fc.getForm().getOnDragMethodID();
}
if (onDragID > 0) {
// $NON-NLS-1$
Object dragReturn = fc.executeFunction(Integer.toString(onDragID), new Object[] { event }, false, null, false, "onDragMethodID");
if (dragReturn instanceof Number)
return ((Number) dragReturn).intValue();
}
return DRAGNDROP.NONE;
}
use of com.servoy.j2db.persistence.Portal in project servoy-client by Servoy.
the class TableView method getOnDropMethodID.
private int getOnDropMethodID() {
int onDropID = 0;
if (cellview instanceof Portal) {
Portal cellviewPortal = (Portal) cellview;
onDropID = cellviewPortal.getOnDropMethodID();
} else {
onDropID = fc.getForm().getOnDropMethodID();
}
return onDropID;
}
use of com.servoy.j2db.persistence.Portal in project servoy-client by Servoy.
the class TableView method onDragEnd.
public void onDragEnd(JSDNDEvent event) {
int onDragEndID = 0;
if (cellview instanceof Portal) {
Portal cellviewPortal = (Portal) cellview;
onDragEndID = cellviewPortal.getOnDragEndMethodID();
} else {
onDragEndID = fc.getForm().getOnDragEndMethodID();
}
if (onDragEndID > 0) {
// $NON-NLS-1$
fc.executeFunction(Integer.toString(onDragEndID), new Object[] { event }, false, null, false, "onDragEndMethodID");
}
}
use of com.servoy.j2db.persistence.Portal in project servoy-client by Servoy.
the class ScrollResponseHeaderContainer method initDragNDrop.
public void initDragNDrop(FormController formController, int clientDesignYOffset) {
this.yOffset = clientDesignYOffset;
boolean enableDragDrop = false;
if (cellview instanceof Portal) {
Portal cellviewPortal = (Portal) cellview;
enableDragDrop = (cellviewPortal.getOnDragMethodID() > 0 || cellviewPortal.getOnDragEndMethodID() > 0 || cellviewPortal.getOnDragOverMethodID() > 0 || cellviewPortal.getOnDropMethodID() > 0);
} else {
Form form = formController.getForm();
enableDragDrop = (form.getOnDragMethodID() > 0 || form.getOnDragEndMethodID() > 0 || form.getOnDragOverMethodID() > 0 || form.getOnDropMethodID() > 0);
}
if (enableDragDrop) {
dragNdropController = formController;
addDragNDropBehavior();
}
}
use of com.servoy.j2db.persistence.Portal in project servoy-client by Servoy.
the class ScrollResponseHeaderContainer method getOtherFormPartsHeight.
private int getOtherFormPartsHeight() {
int bodyDesignHeight = endY - startY;
int otherPartsHeight = (cellview instanceof Portal) ? 0 : formDesignHeight - bodyDesignHeight;
return otherPartsHeight;
}
Aggregations