"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/java/com/openkm/extension/frontend/client/widget/stapling/Status.java" between
OpenKM-document-management-system-6.3.10.tar.gz and OpenKM-document-management-system-6.3.11.tar.gz

About: OpenKM (Knowledge Management) is a document management system that allows easy management of documents, users, roles and finding your enterprise documents and records. Community version (source code).

Status.java  (OpenKM-document-management-system-6.3.10):Status.java  (OpenKM-document-management-system-6.3.11)
skipping to change at line 26 skipping to change at line 26
* <p> * <p>
* You should have received a copy of the GNU General Public License along * You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc., * with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
package com.openkm.extension.frontend.client.widget.stapling; package com.openkm.extension.frontend.client.widget.stapling;
import com.google.gwt.user.client.ui.*; import com.google.gwt.user.client.ui.*;
import com.openkm.extension.frontend.client.util.OKMBundleResources; import com.openkm.extension.frontend.client.util.OKMBundleResources;
import com.openkm.frontend.client.extension.comunicator.FileBrowserComunicator; import com.openkm.frontend.client.extension.comunicator.FileBrowserCommunicator;
import com.openkm.frontend.client.extension.comunicator.GeneralComunicator; import com.openkm.frontend.client.extension.comunicator.GeneralComunicator;
import com.openkm.frontend.client.extension.comunicator.TabDocumentComunicator; import com.openkm.frontend.client.extension.comunicator.TabDocumentComunicator;
/** /**
* Status * Status
* *
* @author jllort * @author jllort
* *
*/ */
public class Status extends PopupPanel { public class Status extends PopupPanel {
skipping to change at line 89 skipping to change at line 89
} }
/** /**
* Refreshing the panel * Refreshing the panel
*/ */
public void refresh() { public void refresh() {
if (flag_getStaplets || flag_deleteStaplingGroup || flag_addStapl ing) { if (flag_getStaplets || flag_deleteStaplingGroup || flag_addStapl ing) {
int left = 0; int left = 0;
int top = 0; int top = 0;
if (FileBrowserComunicator.isDocumentSelected()) { if (FileBrowserCommunicator.isDocumentSelected()) {
left = ((Stapling.get().tabDocument.getOffsetWidt h() - 220) / 2) + Stapling.get().tabDocument.getAbsoluteLeft(); left = ((Stapling.get().tabDocument.getOffsetWidt h() - 220) / 2) + Stapling.get().tabDocument.getAbsoluteLeft();
top = ((Stapling.get().tabDocument.getOffsetHeigh t() - 40) / 2) + Stapling.get().tabDocument.getAbsoluteTop(); top = ((Stapling.get().tabDocument.getOffsetHeigh t() - 40) / 2) + Stapling.get().tabDocument.getAbsoluteTop();
} else if (FileBrowserComunicator.isFolderSelected()) { } else if (FileBrowserCommunicator.isFolderSelected()) {
left = ((Stapling.get().tabFolder.getOffsetWidth( ) - 220) / 2) + Stapling.get().tabFolder.getAbsoluteLeft(); left = ((Stapling.get().tabFolder.getOffsetWidth( ) - 220) / 2) + Stapling.get().tabFolder.getAbsoluteLeft();
top = ((Stapling.get().tabFolder.getOffsetHeight( ) - 40) / 2) + Stapling.get().tabFolder.getAbsoluteTop(); top = ((Stapling.get().tabFolder.getOffsetHeight( ) - 40) / 2) + Stapling.get().tabFolder.getAbsoluteTop();
} else if (FileBrowserComunicator.isMailSelected()) { } else if (FileBrowserCommunicator.isMailSelected()) {
left = ((Stapling.get().tabMail.getOffsetWidth() - 220) / 2) + Stapling.get().tabMail.getAbsoluteLeft(); left = ((Stapling.get().tabMail.getOffsetWidth() - 220) / 2) + Stapling.get().tabMail.getAbsoluteLeft();
top = ((Stapling.get().tabMail.getOffsetHeight() - 40) / 2) + Stapling.get().tabMail.getAbsoluteTop(); top = ((Stapling.get().tabMail.getOffsetHeight() - 40) / 2) + Stapling.get().tabMail.getAbsoluteTop();
} }
if (left > 0 && top > 0) { if (left > 0 && top > 0) {
setPopupPosition(left, top); setPopupPosition(left, top);
TabDocumentComunicator.setRefreshingStyle(); TabDocumentComunicator.setRefreshingStyle();
super.show(); super.show();
} }
} else { } else {
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)