Skip to content

Commit

Permalink
licensed to lgpl v3
Browse files Browse the repository at this point in the history
  • Loading branch information
marioserrano09 committed May 27, 2019
1 parent 3898603 commit c821911
Show file tree
Hide file tree
Showing 27 changed files with 636 additions and 30 deletions.
23 changes: 23 additions & 0 deletions src/main/java/tools/dynamia/modules/filemanager/FileManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,28 @@
*/
package tools.dynamia.modules.filemanager;

/*-
* #%L
* Dynamia Modules - FileManager
* %%
* Copyright (C) 2017 - 2019 Dynamia Soluciones IT SAS
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/lgpl-3.0.html>.
* #L%
*/

import org.zkoss.image.AImage;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
Expand Down Expand Up @@ -50,6 +72,7 @@
import java.util.Map;

/**
* Visual component from file explorer
* @author Mario Serrano Leones
*/
public class FileManager extends Div implements ActionEventBuilder, View<FileInfo> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,41 +21,64 @@
*/
package tools.dynamia.modules.filemanager;

/*-
* #%L
* Dynamia Modules - FileManager
* %%
* Copyright (C) 2017 - 2019 Dynamia Soluciones IT SAS
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/lgpl-3.0.html>.
* #L%
*/

import tools.dynamia.actions.AbstractAction;
import tools.dynamia.actions.ActionRenderer;
import tools.dynamia.viewers.Indexable;
import tools.dynamia.zk.actions.ToolbarbuttonActionRenderer;

/**
* Base class for file manager actions
*
* @author Mario Serrano Leones
*/
public abstract class FileManagerAction extends AbstractAction implements Indexable {

private int index;
private boolean menuSupported;
private int index;
private boolean menuSupported;

@Override
public ActionRenderer getRenderer() {
return new ToolbarbuttonActionRenderer();
}
@Override
public ActionRenderer getRenderer() {
return new ToolbarbuttonActionRenderer();
}

@Override
public int getIndex() {
return index;
}
@Override
public int getIndex() {
return index;
}

@Override
public void setIndex(int index) {
this.index = index;
}
@Override
public void setIndex(int index) {
this.index = index;
}

public boolean isMenuSupported() {
return menuSupported;
}
public boolean isMenuSupported() {
return menuSupported;
}

public void setMenuSupported(boolean menuSupported) {
this.menuSupported = menuSupported;
}
public void setMenuSupported(boolean menuSupported) {
this.menuSupported = menuSupported;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,28 @@

package tools.dynamia.modules.filemanager;

/*-
* #%L
* Dynamia Modules - FileManager
* %%
* Copyright (C) 2017 - 2019 Dynamia Soluciones IT SAS
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/lgpl-3.0.html>.
* #L%
*/

import tools.dynamia.ui.icons.AbstractIconsProvider;
import tools.dynamia.ui.icons.InstallIcons;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,34 @@

package tools.dynamia.modules.filemanager;

/*-
* #%L
* Dynamia Modules - FileManager
* %%
* Copyright (C) 2017 - 2019 Dynamia Soluciones IT SAS
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/lgpl-3.0.html>.
* #L%
*/

import tools.dynamia.io.FileInfo;

/**
* Api for selected file preview
*/
public interface FileManagerPreviewExtension {

Object getView(FileInfo selectedFile);
Object getView(FileInfo selectedFile);
}
25 changes: 25 additions & 0 deletions src/main/java/tools/dynamia/modules/filemanager/Folder.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,31 @@

package tools.dynamia.modules.filemanager;

/*-
* #%L
* Dynamia Modules - FileManager
* %%
* Copyright (C) 2017 - 2019 Dynamia Soluciones IT SAS
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/lgpl-3.0.html>.
* #L%
*/

/**
* Folder info
*/
public class Folder {

private String name = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,28 @@

package tools.dynamia.modules.filemanager.actions;

/*-
* #%L
* Dynamia Modules - FileManager
* %%
* Copyright (C) 2017 - 2019 Dynamia Soluciones IT SAS
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/lgpl-3.0.html>.
* #L%
*/

import java.util.List;

import tools.dynamia.actions.ActionEvent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,28 @@

package tools.dynamia.modules.filemanager.actions;

/*-
* #%L
* Dynamia Modules - FileManager
* %%
* Copyright (C) 2017 - 2019 Dynamia Soluciones IT SAS
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/lgpl-3.0.html>.
* #L%
*/

import java.util.List;

import tools.dynamia.actions.ActionEvent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,28 @@

package tools.dynamia.modules.filemanager.actions;

/*-
* #%L
* Dynamia Modules - FileManager
* %%
* Copyright (C) 2017 - 2019 Dynamia Soluciones IT SAS
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/lgpl-3.0.html>.
* #L%
*/

import tools.dynamia.actions.ActionEvent;
import tools.dynamia.actions.InstallAction;
import tools.dynamia.io.FileInfo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,28 @@
*/
package tools.dynamia.modules.filemanager.actions;

/*-
* #%L
* Dynamia Modules - FileManager
* %%
* Copyright (C) 2017 - 2019 Dynamia Soluciones IT SAS
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/lgpl-3.0.html>.
* #L%
*/

import tools.dynamia.actions.ActionEvent;
import tools.dynamia.actions.InstallAction;
import tools.dynamia.io.FileInfo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,28 @@
*/
package tools.dynamia.modules.filemanager.actions;

/*-
* #%L
* Dynamia Modules - FileManager
* %%
* Copyright (C) 2017 - 2019 Dynamia Soluciones IT SAS
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/lgpl-3.0.html>.
* #L%
*/


import java.io.FileNotFoundException;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,28 @@
*/
package tools.dynamia.modules.filemanager.actions;

/*-
* #%L
* Dynamia Modules - FileManager
* %%
* Copyright (C) 2017 - 2019 Dynamia Soluciones IT SAS
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/lgpl-3.0.html>.
* #L%
*/

import tools.dynamia.actions.ActionEvent;
import tools.dynamia.actions.InstallAction;
import tools.dynamia.io.FileInfo;
Expand Down
Loading

0 comments on commit c821911

Please sign in to comment.