mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 09:10:48 +00:00
copyright year updated 2
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2014-2015 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2014-2015 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2014-2015 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2014-2015 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2014-2015 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2014-2015 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2014-2015 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2014-2015 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2014-2015 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2014-2015 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2014-2015 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,153 +1,153 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU 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 Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui.abc.tablemodels;
|
||||
|
||||
import com.jpexs.decompiler.flash.abc.ABC;
|
||||
import javax.swing.event.TableModelListener;
|
||||
import javax.swing.table.TableModel;
|
||||
|
||||
public class DecimalTableModel implements TableModel {
|
||||
|
||||
private final ABC abc;
|
||||
private static final String[] columnNames = new String[]{"Index", "Value"};
|
||||
private static final Class[] classes = new Class[]{Long.class, String.class};
|
||||
|
||||
public DecimalTableModel(ABC abc) {
|
||||
this.abc = abc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of rows in the model. A <code>JTable</code> uses this
|
||||
* method to determine how many rows it should display. This method should
|
||||
* be quick, as it is called frequently during rendering.
|
||||
*
|
||||
* @return the number of rows in the model
|
||||
* @see #getColumnCount
|
||||
*/
|
||||
@Override
|
||||
public int getRowCount() {
|
||||
if (abc == null) {
|
||||
return 0;
|
||||
}
|
||||
return abc.constants.getDecimalCount();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of columns in the model. A <code>JTable</code> uses
|
||||
* this method to determine how many columns it should create and display by
|
||||
* default.
|
||||
*
|
||||
* @return the number of columns in the model
|
||||
* @see #getRowCount
|
||||
*/
|
||||
@Override
|
||||
public int getColumnCount() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of the column at <code>columnIndex</code>. This is used
|
||||
* to initialize the table's column header name. Note: this name does not
|
||||
* need to be unique; two columns in a table can have the same name.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the name of the column
|
||||
*/
|
||||
@Override
|
||||
public String getColumnName(int columnIndex) {
|
||||
return columnNames[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the most specific superclass for all the cell values in the
|
||||
* column. This is used by the <code>JTable</code> to set up a default
|
||||
* renderer and editor for the column.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the common ancestor class of the object values in the model.
|
||||
*/
|
||||
@Override
|
||||
public Class<?> getColumnClass(int columnIndex) {
|
||||
return classes[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the cell at <code>rowIndex</code> and
|
||||
* <code>columnIndex</code> is editable. Otherwise, <code>setValueAt</code>
|
||||
* on the cell will not change the value of that cell.
|
||||
*
|
||||
* @param rowIndex the row whose value to be queried
|
||||
* @param columnIndex the column whose value to be queried
|
||||
* @return true if the cell is editable
|
||||
* @see #setValueAt
|
||||
*/
|
||||
@Override
|
||||
public boolean isCellEditable(int rowIndex, int columnIndex) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value for the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code>.
|
||||
*
|
||||
* @param rowIndex the row whose value is to be queried
|
||||
* @param columnIndex the column whose value is to be queried
|
||||
* @return the value Object at the specified cell
|
||||
*/
|
||||
@Override
|
||||
public Object getValueAt(int rowIndex, int columnIndex) {
|
||||
if (columnIndex == 0) {
|
||||
return rowIndex;
|
||||
} else {
|
||||
return abc.constants.getDecimal(rowIndex);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value in the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code> to <code>aValue</code>.
|
||||
*
|
||||
* @param aValue the new value
|
||||
* @param rowIndex the row whose value is to be changed
|
||||
* @param columnIndex the column whose value is to be changed
|
||||
* @see #getValueAt
|
||||
* @see #isCellEditable
|
||||
*/
|
||||
@Override
|
||||
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a listener to the list that is notified each time a change to the
|
||||
* data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void addTableModelListener(TableModelListener l) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a listener from the list that is notified each time a change to
|
||||
* the data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void removeTableModelListener(TableModelListener l) {
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU 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 Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui.abc.tablemodels;
|
||||
|
||||
import com.jpexs.decompiler.flash.abc.ABC;
|
||||
import javax.swing.event.TableModelListener;
|
||||
import javax.swing.table.TableModel;
|
||||
|
||||
public class DecimalTableModel implements TableModel {
|
||||
|
||||
private final ABC abc;
|
||||
private static final String[] columnNames = new String[]{"Index", "Value"};
|
||||
private static final Class[] classes = new Class[]{Long.class, String.class};
|
||||
|
||||
public DecimalTableModel(ABC abc) {
|
||||
this.abc = abc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of rows in the model. A <code>JTable</code> uses this
|
||||
* method to determine how many rows it should display. This method should
|
||||
* be quick, as it is called frequently during rendering.
|
||||
*
|
||||
* @return the number of rows in the model
|
||||
* @see #getColumnCount
|
||||
*/
|
||||
@Override
|
||||
public int getRowCount() {
|
||||
if (abc == null) {
|
||||
return 0;
|
||||
}
|
||||
return abc.constants.getDecimalCount();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of columns in the model. A <code>JTable</code> uses
|
||||
* this method to determine how many columns it should create and display by
|
||||
* default.
|
||||
*
|
||||
* @return the number of columns in the model
|
||||
* @see #getRowCount
|
||||
*/
|
||||
@Override
|
||||
public int getColumnCount() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of the column at <code>columnIndex</code>. This is used
|
||||
* to initialize the table's column header name. Note: this name does not
|
||||
* need to be unique; two columns in a table can have the same name.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the name of the column
|
||||
*/
|
||||
@Override
|
||||
public String getColumnName(int columnIndex) {
|
||||
return columnNames[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the most specific superclass for all the cell values in the
|
||||
* column. This is used by the <code>JTable</code> to set up a default
|
||||
* renderer and editor for the column.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the common ancestor class of the object values in the model.
|
||||
*/
|
||||
@Override
|
||||
public Class<?> getColumnClass(int columnIndex) {
|
||||
return classes[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the cell at <code>rowIndex</code> and
|
||||
* <code>columnIndex</code> is editable. Otherwise, <code>setValueAt</code>
|
||||
* on the cell will not change the value of that cell.
|
||||
*
|
||||
* @param rowIndex the row whose value to be queried
|
||||
* @param columnIndex the column whose value to be queried
|
||||
* @return true if the cell is editable
|
||||
* @see #setValueAt
|
||||
*/
|
||||
@Override
|
||||
public boolean isCellEditable(int rowIndex, int columnIndex) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value for the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code>.
|
||||
*
|
||||
* @param rowIndex the row whose value is to be queried
|
||||
* @param columnIndex the column whose value is to be queried
|
||||
* @return the value Object at the specified cell
|
||||
*/
|
||||
@Override
|
||||
public Object getValueAt(int rowIndex, int columnIndex) {
|
||||
if (columnIndex == 0) {
|
||||
return rowIndex;
|
||||
} else {
|
||||
return abc.constants.getDecimal(rowIndex);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value in the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code> to <code>aValue</code>.
|
||||
*
|
||||
* @param aValue the new value
|
||||
* @param rowIndex the row whose value is to be changed
|
||||
* @param columnIndex the column whose value is to be changed
|
||||
* @see #getValueAt
|
||||
* @see #isCellEditable
|
||||
*/
|
||||
@Override
|
||||
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a listener to the list that is notified each time a change to the
|
||||
* data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void addTableModelListener(TableModelListener l) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a listener from the list that is notified each time a change to
|
||||
* the data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void removeTableModelListener(TableModelListener l) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,153 +1,153 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU 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 Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui.abc.tablemodels;
|
||||
|
||||
import com.jpexs.decompiler.flash.abc.ABC;
|
||||
import javax.swing.event.TableModelListener;
|
||||
import javax.swing.table.TableModel;
|
||||
|
||||
public class IntTableModel implements TableModel {
|
||||
|
||||
private final ABC abc;
|
||||
private static final String[] columnNames = new String[]{"Index", "Value"};
|
||||
private static final Class[] classes = new Class[]{Long.class, Long.class};
|
||||
|
||||
public IntTableModel(ABC abc) {
|
||||
this.abc = abc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of rows in the model. A <code>JTable</code> uses this
|
||||
* method to determine how many rows it should display. This method should
|
||||
* be quick, as it is called frequently during rendering.
|
||||
*
|
||||
* @return the number of rows in the model
|
||||
* @see #getColumnCount
|
||||
*/
|
||||
@Override
|
||||
public int getRowCount() {
|
||||
if (abc == null) {
|
||||
return 0;
|
||||
}
|
||||
return abc.constants.getIntCount();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of columns in the model. A <code>JTable</code> uses
|
||||
* this method to determine how many columns it should create and display by
|
||||
* default.
|
||||
*
|
||||
* @return the number of columns in the model
|
||||
* @see #getRowCount
|
||||
*/
|
||||
@Override
|
||||
public int getColumnCount() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of the column at <code>columnIndex</code>. This is used
|
||||
* to initialize the table's column header name. Note: this name does not
|
||||
* need to be unique; two columns in a table can have the same name.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the name of the column
|
||||
*/
|
||||
@Override
|
||||
public String getColumnName(int columnIndex) {
|
||||
return columnNames[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the most specific superclass for all the cell values in the
|
||||
* column. This is used by the <code>JTable</code> to set up a default
|
||||
* renderer and editor for the column.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the common ancestor class of the object values in the model.
|
||||
*/
|
||||
@Override
|
||||
public Class<?> getColumnClass(int columnIndex) {
|
||||
return classes[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the cell at <code>rowIndex</code> and
|
||||
* <code>columnIndex</code> is editable. Otherwise, <code>setValueAt</code>
|
||||
* on the cell will not change the value of that cell.
|
||||
*
|
||||
* @param rowIndex the row whose value to be queried
|
||||
* @param columnIndex the column whose value to be queried
|
||||
* @return true if the cell is editable
|
||||
* @see #setValueAt
|
||||
*/
|
||||
@Override
|
||||
public boolean isCellEditable(int rowIndex, int columnIndex) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value for the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code>.
|
||||
*
|
||||
* @param rowIndex the row whose value is to be queried
|
||||
* @param columnIndex the column whose value is to be queried
|
||||
* @return the value Object at the specified cell
|
||||
*/
|
||||
@Override
|
||||
public Object getValueAt(int rowIndex, int columnIndex) {
|
||||
if (columnIndex == 0) {
|
||||
return rowIndex;
|
||||
} else {
|
||||
return abc.constants.getInt(rowIndex);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value in the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code> to <code>aValue</code>.
|
||||
*
|
||||
* @param aValue the new value
|
||||
* @param rowIndex the row whose value is to be changed
|
||||
* @param columnIndex the column whose value is to be changed
|
||||
* @see #getValueAt
|
||||
* @see #isCellEditable
|
||||
*/
|
||||
@Override
|
||||
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a listener to the list that is notified each time a change to the
|
||||
* data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void addTableModelListener(TableModelListener l) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a listener from the list that is notified each time a change to
|
||||
* the data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void removeTableModelListener(TableModelListener l) {
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU 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 Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui.abc.tablemodels;
|
||||
|
||||
import com.jpexs.decompiler.flash.abc.ABC;
|
||||
import javax.swing.event.TableModelListener;
|
||||
import javax.swing.table.TableModel;
|
||||
|
||||
public class IntTableModel implements TableModel {
|
||||
|
||||
private final ABC abc;
|
||||
private static final String[] columnNames = new String[]{"Index", "Value"};
|
||||
private static final Class[] classes = new Class[]{Long.class, Long.class};
|
||||
|
||||
public IntTableModel(ABC abc) {
|
||||
this.abc = abc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of rows in the model. A <code>JTable</code> uses this
|
||||
* method to determine how many rows it should display. This method should
|
||||
* be quick, as it is called frequently during rendering.
|
||||
*
|
||||
* @return the number of rows in the model
|
||||
* @see #getColumnCount
|
||||
*/
|
||||
@Override
|
||||
public int getRowCount() {
|
||||
if (abc == null) {
|
||||
return 0;
|
||||
}
|
||||
return abc.constants.getIntCount();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of columns in the model. A <code>JTable</code> uses
|
||||
* this method to determine how many columns it should create and display by
|
||||
* default.
|
||||
*
|
||||
* @return the number of columns in the model
|
||||
* @see #getRowCount
|
||||
*/
|
||||
@Override
|
||||
public int getColumnCount() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of the column at <code>columnIndex</code>. This is used
|
||||
* to initialize the table's column header name. Note: this name does not
|
||||
* need to be unique; two columns in a table can have the same name.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the name of the column
|
||||
*/
|
||||
@Override
|
||||
public String getColumnName(int columnIndex) {
|
||||
return columnNames[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the most specific superclass for all the cell values in the
|
||||
* column. This is used by the <code>JTable</code> to set up a default
|
||||
* renderer and editor for the column.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the common ancestor class of the object values in the model.
|
||||
*/
|
||||
@Override
|
||||
public Class<?> getColumnClass(int columnIndex) {
|
||||
return classes[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the cell at <code>rowIndex</code> and
|
||||
* <code>columnIndex</code> is editable. Otherwise, <code>setValueAt</code>
|
||||
* on the cell will not change the value of that cell.
|
||||
*
|
||||
* @param rowIndex the row whose value to be queried
|
||||
* @param columnIndex the column whose value to be queried
|
||||
* @return true if the cell is editable
|
||||
* @see #setValueAt
|
||||
*/
|
||||
@Override
|
||||
public boolean isCellEditable(int rowIndex, int columnIndex) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value for the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code>.
|
||||
*
|
||||
* @param rowIndex the row whose value is to be queried
|
||||
* @param columnIndex the column whose value is to be queried
|
||||
* @return the value Object at the specified cell
|
||||
*/
|
||||
@Override
|
||||
public Object getValueAt(int rowIndex, int columnIndex) {
|
||||
if (columnIndex == 0) {
|
||||
return rowIndex;
|
||||
} else {
|
||||
return abc.constants.getInt(rowIndex);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value in the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code> to <code>aValue</code>.
|
||||
*
|
||||
* @param aValue the new value
|
||||
* @param rowIndex the row whose value is to be changed
|
||||
* @param columnIndex the column whose value is to be changed
|
||||
* @see #getValueAt
|
||||
* @see #isCellEditable
|
||||
*/
|
||||
@Override
|
||||
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a listener to the list that is notified each time a change to the
|
||||
* data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void addTableModelListener(TableModelListener l) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a listener from the list that is notified each time a change to
|
||||
* the data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void removeTableModelListener(TableModelListener l) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,159 +1,159 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU 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 Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui.abc.tablemodels;
|
||||
|
||||
import com.jpexs.decompiler.flash.abc.ABC;
|
||||
import javax.swing.event.TableModelListener;
|
||||
import javax.swing.table.TableModel;
|
||||
|
||||
public class NamespaceSetTableModel implements TableModel {
|
||||
|
||||
private final ABC abc;
|
||||
private static final String[] columnNames = new String[]{"Index", "NameSpaces"};
|
||||
private static final Class[] classes = new Class[]{Long.class, String.class, String.class};
|
||||
|
||||
public NamespaceSetTableModel(ABC abc) {
|
||||
this.abc = abc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of rows in the model. A <code>JTable</code> uses this
|
||||
* method to determine how many rows it should display. This method should
|
||||
* be quick, as it is called frequently during rendering.
|
||||
*
|
||||
* @return the number of rows in the model
|
||||
* @see #getColumnCount
|
||||
*/
|
||||
@Override
|
||||
public int getRowCount() {
|
||||
if (abc == null) {
|
||||
return 0;
|
||||
}
|
||||
return abc.constants.getNamespaceSetCount();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of columns in the model. A <code>JTable</code> uses
|
||||
* this method to determine how many columns it should create and display by
|
||||
* default.
|
||||
*
|
||||
* @return the number of columns in the model
|
||||
* @see #getRowCount
|
||||
*/
|
||||
@Override
|
||||
public int getColumnCount() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of the column at <code>columnIndex</code>. This is used
|
||||
* to initialize the table's column header name. Note: this name does not
|
||||
* need to be unique; two columns in a table can have the same name.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the name of the column
|
||||
*/
|
||||
@Override
|
||||
public String getColumnName(int columnIndex) {
|
||||
return columnNames[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the most specific superclass for all the cell values in the
|
||||
* column. This is used by the <code>JTable</code> to set up a default
|
||||
* renderer and editor for the column.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the common ancestor class of the object values in the model.
|
||||
*/
|
||||
@Override
|
||||
public Class<?> getColumnClass(int columnIndex) {
|
||||
return classes[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the cell at <code>rowIndex</code> and
|
||||
* <code>columnIndex</code> is editable. Otherwise, <code>setValueAt</code>
|
||||
* on the cell will not change the value of that cell.
|
||||
*
|
||||
* @param rowIndex the row whose value to be queried
|
||||
* @param columnIndex the column whose value to be queried
|
||||
* @return true if the cell is editable
|
||||
* @see #setValueAt
|
||||
*/
|
||||
@Override
|
||||
public boolean isCellEditable(int rowIndex, int columnIndex) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value for the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code>.
|
||||
*
|
||||
* @param rowIndex the row whose value is to be queried
|
||||
* @param columnIndex the column whose value is to be queried
|
||||
* @return the value Object at the specified cell
|
||||
*/
|
||||
@Override
|
||||
public Object getValueAt(int rowIndex, int columnIndex) {
|
||||
switch (columnIndex) {
|
||||
case 0:
|
||||
return rowIndex;
|
||||
case 1:
|
||||
if (rowIndex == 0) {
|
||||
return "";
|
||||
}
|
||||
return abc.constants.getNamespaceSet(rowIndex).toString(abc.constants);
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value in the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code> to <code>aValue</code>.
|
||||
*
|
||||
* @param aValue the new value
|
||||
* @param rowIndex the row whose value is to be changed
|
||||
* @param columnIndex the column whose value is to be changed
|
||||
* @see #getValueAt
|
||||
* @see #isCellEditable
|
||||
*/
|
||||
@Override
|
||||
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a listener to the list that is notified each time a change to the
|
||||
* data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void addTableModelListener(TableModelListener l) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a listener from the list that is notified each time a change to
|
||||
* the data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void removeTableModelListener(TableModelListener l) {
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU 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 Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui.abc.tablemodels;
|
||||
|
||||
import com.jpexs.decompiler.flash.abc.ABC;
|
||||
import javax.swing.event.TableModelListener;
|
||||
import javax.swing.table.TableModel;
|
||||
|
||||
public class NamespaceSetTableModel implements TableModel {
|
||||
|
||||
private final ABC abc;
|
||||
private static final String[] columnNames = new String[]{"Index", "NameSpaces"};
|
||||
private static final Class[] classes = new Class[]{Long.class, String.class, String.class};
|
||||
|
||||
public NamespaceSetTableModel(ABC abc) {
|
||||
this.abc = abc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of rows in the model. A <code>JTable</code> uses this
|
||||
* method to determine how many rows it should display. This method should
|
||||
* be quick, as it is called frequently during rendering.
|
||||
*
|
||||
* @return the number of rows in the model
|
||||
* @see #getColumnCount
|
||||
*/
|
||||
@Override
|
||||
public int getRowCount() {
|
||||
if (abc == null) {
|
||||
return 0;
|
||||
}
|
||||
return abc.constants.getNamespaceSetCount();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of columns in the model. A <code>JTable</code> uses
|
||||
* this method to determine how many columns it should create and display by
|
||||
* default.
|
||||
*
|
||||
* @return the number of columns in the model
|
||||
* @see #getRowCount
|
||||
*/
|
||||
@Override
|
||||
public int getColumnCount() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of the column at <code>columnIndex</code>. This is used
|
||||
* to initialize the table's column header name. Note: this name does not
|
||||
* need to be unique; two columns in a table can have the same name.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the name of the column
|
||||
*/
|
||||
@Override
|
||||
public String getColumnName(int columnIndex) {
|
||||
return columnNames[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the most specific superclass for all the cell values in the
|
||||
* column. This is used by the <code>JTable</code> to set up a default
|
||||
* renderer and editor for the column.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the common ancestor class of the object values in the model.
|
||||
*/
|
||||
@Override
|
||||
public Class<?> getColumnClass(int columnIndex) {
|
||||
return classes[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the cell at <code>rowIndex</code> and
|
||||
* <code>columnIndex</code> is editable. Otherwise, <code>setValueAt</code>
|
||||
* on the cell will not change the value of that cell.
|
||||
*
|
||||
* @param rowIndex the row whose value to be queried
|
||||
* @param columnIndex the column whose value to be queried
|
||||
* @return true if the cell is editable
|
||||
* @see #setValueAt
|
||||
*/
|
||||
@Override
|
||||
public boolean isCellEditable(int rowIndex, int columnIndex) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value for the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code>.
|
||||
*
|
||||
* @param rowIndex the row whose value is to be queried
|
||||
* @param columnIndex the column whose value is to be queried
|
||||
* @return the value Object at the specified cell
|
||||
*/
|
||||
@Override
|
||||
public Object getValueAt(int rowIndex, int columnIndex) {
|
||||
switch (columnIndex) {
|
||||
case 0:
|
||||
return rowIndex;
|
||||
case 1:
|
||||
if (rowIndex == 0) {
|
||||
return "";
|
||||
}
|
||||
return abc.constants.getNamespaceSet(rowIndex).toString(abc.constants);
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value in the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code> to <code>aValue</code>.
|
||||
*
|
||||
* @param aValue the new value
|
||||
* @param rowIndex the row whose value is to be changed
|
||||
* @param columnIndex the column whose value is to be changed
|
||||
* @see #getValueAt
|
||||
* @see #isCellEditable
|
||||
*/
|
||||
@Override
|
||||
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a listener to the list that is notified each time a change to the
|
||||
* data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void addTableModelListener(TableModelListener l) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a listener from the list that is notified each time a change to
|
||||
* the data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void removeTableModelListener(TableModelListener l) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,153 +1,153 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU 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 Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui.abc.tablemodels;
|
||||
|
||||
import com.jpexs.decompiler.flash.abc.ABC;
|
||||
import javax.swing.event.TableModelListener;
|
||||
import javax.swing.table.TableModel;
|
||||
|
||||
public class StringTableModel implements TableModel {
|
||||
|
||||
private final ABC abc;
|
||||
private static final String[] columnNames = new String[]{"Index", "Value"};
|
||||
private static final Class[] classes = new Class[]{Long.class, String.class};
|
||||
|
||||
public StringTableModel(ABC abc) {
|
||||
this.abc = abc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of rows in the model. A <code>JTable</code> uses this
|
||||
* method to determine how many rows it should display. This method should
|
||||
* be quick, as it is called frequently during rendering.
|
||||
*
|
||||
* @return the number of rows in the model
|
||||
* @see #getColumnCount
|
||||
*/
|
||||
@Override
|
||||
public int getRowCount() {
|
||||
if (abc == null) {
|
||||
return 0;
|
||||
}
|
||||
return abc.constants.getStringCount();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of columns in the model. A <code>JTable</code> uses
|
||||
* this method to determine how many columns it should create and display by
|
||||
* default.
|
||||
*
|
||||
* @return the number of columns in the model
|
||||
* @see #getRowCount
|
||||
*/
|
||||
@Override
|
||||
public int getColumnCount() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of the column at <code>columnIndex</code>. This is used
|
||||
* to initialize the table's column header name. Note: this name does not
|
||||
* need to be unique; two columns in a table can have the same name.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the name of the column
|
||||
*/
|
||||
@Override
|
||||
public String getColumnName(int columnIndex) {
|
||||
return columnNames[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the most specific superclass for all the cell values in the
|
||||
* column. This is used by the <code>JTable</code> to set up a default
|
||||
* renderer and editor for the column.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the common ancestor class of the object values in the model.
|
||||
*/
|
||||
@Override
|
||||
public Class<?> getColumnClass(int columnIndex) {
|
||||
return classes[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the cell at <code>rowIndex</code> and
|
||||
* <code>columnIndex</code> is editable. Otherwise, <code>setValueAt</code>
|
||||
* on the cell will not change the value of that cell.
|
||||
*
|
||||
* @param rowIndex the row whose value to be queried
|
||||
* @param columnIndex the column whose value to be queried
|
||||
* @return true if the cell is editable
|
||||
* @see #setValueAt
|
||||
*/
|
||||
@Override
|
||||
public boolean isCellEditable(int rowIndex, int columnIndex) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value for the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code>.
|
||||
*
|
||||
* @param rowIndex the row whose value is to be queried
|
||||
* @param columnIndex the column whose value is to be queried
|
||||
* @return the value Object at the specified cell
|
||||
*/
|
||||
@Override
|
||||
public Object getValueAt(int rowIndex, int columnIndex) {
|
||||
if (columnIndex == 0) {
|
||||
return rowIndex;
|
||||
} else {
|
||||
return abc.constants.getString(rowIndex);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value in the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code> to <code>aValue</code>.
|
||||
*
|
||||
* @param aValue the new value
|
||||
* @param rowIndex the row whose value is to be changed
|
||||
* @param columnIndex the column whose value is to be changed
|
||||
* @see #getValueAt
|
||||
* @see #isCellEditable
|
||||
*/
|
||||
@Override
|
||||
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a listener to the list that is notified each time a change to the
|
||||
* data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void addTableModelListener(TableModelListener l) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a listener from the list that is notified each time a change to
|
||||
* the data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void removeTableModelListener(TableModelListener l) {
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU 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 Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui.abc.tablemodels;
|
||||
|
||||
import com.jpexs.decompiler.flash.abc.ABC;
|
||||
import javax.swing.event.TableModelListener;
|
||||
import javax.swing.table.TableModel;
|
||||
|
||||
public class StringTableModel implements TableModel {
|
||||
|
||||
private final ABC abc;
|
||||
private static final String[] columnNames = new String[]{"Index", "Value"};
|
||||
private static final Class[] classes = new Class[]{Long.class, String.class};
|
||||
|
||||
public StringTableModel(ABC abc) {
|
||||
this.abc = abc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of rows in the model. A <code>JTable</code> uses this
|
||||
* method to determine how many rows it should display. This method should
|
||||
* be quick, as it is called frequently during rendering.
|
||||
*
|
||||
* @return the number of rows in the model
|
||||
* @see #getColumnCount
|
||||
*/
|
||||
@Override
|
||||
public int getRowCount() {
|
||||
if (abc == null) {
|
||||
return 0;
|
||||
}
|
||||
return abc.constants.getStringCount();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of columns in the model. A <code>JTable</code> uses
|
||||
* this method to determine how many columns it should create and display by
|
||||
* default.
|
||||
*
|
||||
* @return the number of columns in the model
|
||||
* @see #getRowCount
|
||||
*/
|
||||
@Override
|
||||
public int getColumnCount() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of the column at <code>columnIndex</code>. This is used
|
||||
* to initialize the table's column header name. Note: this name does not
|
||||
* need to be unique; two columns in a table can have the same name.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the name of the column
|
||||
*/
|
||||
@Override
|
||||
public String getColumnName(int columnIndex) {
|
||||
return columnNames[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the most specific superclass for all the cell values in the
|
||||
* column. This is used by the <code>JTable</code> to set up a default
|
||||
* renderer and editor for the column.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the common ancestor class of the object values in the model.
|
||||
*/
|
||||
@Override
|
||||
public Class<?> getColumnClass(int columnIndex) {
|
||||
return classes[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the cell at <code>rowIndex</code> and
|
||||
* <code>columnIndex</code> is editable. Otherwise, <code>setValueAt</code>
|
||||
* on the cell will not change the value of that cell.
|
||||
*
|
||||
* @param rowIndex the row whose value to be queried
|
||||
* @param columnIndex the column whose value to be queried
|
||||
* @return true if the cell is editable
|
||||
* @see #setValueAt
|
||||
*/
|
||||
@Override
|
||||
public boolean isCellEditable(int rowIndex, int columnIndex) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value for the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code>.
|
||||
*
|
||||
* @param rowIndex the row whose value is to be queried
|
||||
* @param columnIndex the column whose value is to be queried
|
||||
* @return the value Object at the specified cell
|
||||
*/
|
||||
@Override
|
||||
public Object getValueAt(int rowIndex, int columnIndex) {
|
||||
if (columnIndex == 0) {
|
||||
return rowIndex;
|
||||
} else {
|
||||
return abc.constants.getString(rowIndex);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value in the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code> to <code>aValue</code>.
|
||||
*
|
||||
* @param aValue the new value
|
||||
* @param rowIndex the row whose value is to be changed
|
||||
* @param columnIndex the column whose value is to be changed
|
||||
* @see #getValueAt
|
||||
* @see #isCellEditable
|
||||
*/
|
||||
@Override
|
||||
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a listener to the list that is notified each time a change to the
|
||||
* data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void addTableModelListener(TableModelListener l) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a listener from the list that is notified each time a change to
|
||||
* the data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void removeTableModelListener(TableModelListener l) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,153 +1,153 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU 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 Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui.abc.tablemodels;
|
||||
|
||||
import com.jpexs.decompiler.flash.abc.ABC;
|
||||
import javax.swing.event.TableModelListener;
|
||||
import javax.swing.table.TableModel;
|
||||
|
||||
public class UIntTableModel implements TableModel {
|
||||
|
||||
private final ABC abc;
|
||||
private static final String[] columnNames = new String[]{"Index", "Value"};
|
||||
private static final Class[] classes = new Class[]{Long.class, Long.class};
|
||||
|
||||
public UIntTableModel(ABC abc) {
|
||||
this.abc = abc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of rows in the model. A <code>JTable</code> uses this
|
||||
* method to determine how many rows it should display. This method should
|
||||
* be quick, as it is called frequently during rendering.
|
||||
*
|
||||
* @return the number of rows in the model
|
||||
* @see #getColumnCount
|
||||
*/
|
||||
@Override
|
||||
public int getRowCount() {
|
||||
if (abc == null) {
|
||||
return 0;
|
||||
}
|
||||
return abc.constants.getUIntCount();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of columns in the model. A <code>JTable</code> uses
|
||||
* this method to determine how many columns it should create and display by
|
||||
* default.
|
||||
*
|
||||
* @return the number of columns in the model
|
||||
* @see #getRowCount
|
||||
*/
|
||||
@Override
|
||||
public int getColumnCount() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of the column at <code>columnIndex</code>. This is used
|
||||
* to initialize the table's column header name. Note: this name does not
|
||||
* need to be unique; two columns in a table can have the same name.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the name of the column
|
||||
*/
|
||||
@Override
|
||||
public String getColumnName(int columnIndex) {
|
||||
return columnNames[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the most specific superclass for all the cell values in the
|
||||
* column. This is used by the <code>JTable</code> to set up a default
|
||||
* renderer and editor for the column.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the common ancestor class of the object values in the model.
|
||||
*/
|
||||
@Override
|
||||
public Class<?> getColumnClass(int columnIndex) {
|
||||
return classes[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the cell at <code>rowIndex</code> and
|
||||
* <code>columnIndex</code> is editable. Otherwise, <code>setValueAt</code>
|
||||
* on the cell will not change the value of that cell.
|
||||
*
|
||||
* @param rowIndex the row whose value to be queried
|
||||
* @param columnIndex the column whose value to be queried
|
||||
* @return true if the cell is editable
|
||||
* @see #setValueAt
|
||||
*/
|
||||
@Override
|
||||
public boolean isCellEditable(int rowIndex, int columnIndex) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value for the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code>.
|
||||
*
|
||||
* @param rowIndex the row whose value is to be queried
|
||||
* @param columnIndex the column whose value is to be queried
|
||||
* @return the value Object at the specified cell
|
||||
*/
|
||||
@Override
|
||||
public Object getValueAt(int rowIndex, int columnIndex) {
|
||||
if (columnIndex == 0) {
|
||||
return rowIndex;
|
||||
} else {
|
||||
return abc.constants.getUInt(rowIndex);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value in the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code> to <code>aValue</code>.
|
||||
*
|
||||
* @param aValue the new value
|
||||
* @param rowIndex the row whose value is to be changed
|
||||
* @param columnIndex the column whose value is to be changed
|
||||
* @see #getValueAt
|
||||
* @see #isCellEditable
|
||||
*/
|
||||
@Override
|
||||
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a listener to the list that is notified each time a change to the
|
||||
* data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void addTableModelListener(TableModelListener l) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a listener from the list that is notified each time a change to
|
||||
* the data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void removeTableModelListener(TableModelListener l) {
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU 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 Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui.abc.tablemodels;
|
||||
|
||||
import com.jpexs.decompiler.flash.abc.ABC;
|
||||
import javax.swing.event.TableModelListener;
|
||||
import javax.swing.table.TableModel;
|
||||
|
||||
public class UIntTableModel implements TableModel {
|
||||
|
||||
private final ABC abc;
|
||||
private static final String[] columnNames = new String[]{"Index", "Value"};
|
||||
private static final Class[] classes = new Class[]{Long.class, Long.class};
|
||||
|
||||
public UIntTableModel(ABC abc) {
|
||||
this.abc = abc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of rows in the model. A <code>JTable</code> uses this
|
||||
* method to determine how many rows it should display. This method should
|
||||
* be quick, as it is called frequently during rendering.
|
||||
*
|
||||
* @return the number of rows in the model
|
||||
* @see #getColumnCount
|
||||
*/
|
||||
@Override
|
||||
public int getRowCount() {
|
||||
if (abc == null) {
|
||||
return 0;
|
||||
}
|
||||
return abc.constants.getUIntCount();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of columns in the model. A <code>JTable</code> uses
|
||||
* this method to determine how many columns it should create and display by
|
||||
* default.
|
||||
*
|
||||
* @return the number of columns in the model
|
||||
* @see #getRowCount
|
||||
*/
|
||||
@Override
|
||||
public int getColumnCount() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of the column at <code>columnIndex</code>. This is used
|
||||
* to initialize the table's column header name. Note: this name does not
|
||||
* need to be unique; two columns in a table can have the same name.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the name of the column
|
||||
*/
|
||||
@Override
|
||||
public String getColumnName(int columnIndex) {
|
||||
return columnNames[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the most specific superclass for all the cell values in the
|
||||
* column. This is used by the <code>JTable</code> to set up a default
|
||||
* renderer and editor for the column.
|
||||
*
|
||||
* @param columnIndex the index of the column
|
||||
* @return the common ancestor class of the object values in the model.
|
||||
*/
|
||||
@Override
|
||||
public Class<?> getColumnClass(int columnIndex) {
|
||||
return classes[columnIndex];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the cell at <code>rowIndex</code> and
|
||||
* <code>columnIndex</code> is editable. Otherwise, <code>setValueAt</code>
|
||||
* on the cell will not change the value of that cell.
|
||||
*
|
||||
* @param rowIndex the row whose value to be queried
|
||||
* @param columnIndex the column whose value to be queried
|
||||
* @return true if the cell is editable
|
||||
* @see #setValueAt
|
||||
*/
|
||||
@Override
|
||||
public boolean isCellEditable(int rowIndex, int columnIndex) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value for the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code>.
|
||||
*
|
||||
* @param rowIndex the row whose value is to be queried
|
||||
* @param columnIndex the column whose value is to be queried
|
||||
* @return the value Object at the specified cell
|
||||
*/
|
||||
@Override
|
||||
public Object getValueAt(int rowIndex, int columnIndex) {
|
||||
if (columnIndex == 0) {
|
||||
return rowIndex;
|
||||
} else {
|
||||
return abc.constants.getUInt(rowIndex);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value in the cell at <code>columnIndex</code> and
|
||||
* <code>rowIndex</code> to <code>aValue</code>.
|
||||
*
|
||||
* @param aValue the new value
|
||||
* @param rowIndex the row whose value is to be changed
|
||||
* @param columnIndex the column whose value is to be changed
|
||||
* @see #getValueAt
|
||||
* @see #isCellEditable
|
||||
*/
|
||||
@Override
|
||||
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a listener to the list that is notified each time a change to the
|
||||
* data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void addTableModelListener(TableModelListener l) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a listener from the list that is notified each time a change to
|
||||
* the data model occurs.
|
||||
*
|
||||
* @param l the TableModelListener
|
||||
*/
|
||||
@Override
|
||||
public void removeTableModelListener(TableModelListener l) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2014-2015 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,91 +1,91 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU 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 Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui.generictageditors;
|
||||
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.lang.reflect.Field;
|
||||
import javax.swing.JCheckBox;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class BooleanEditor extends JCheckBox implements GenericTagEditor {
|
||||
|
||||
private final Object obj;
|
||||
private final Field field;
|
||||
private final int index;
|
||||
private final Class<?> type;
|
||||
private final String fieldName;
|
||||
|
||||
public BooleanEditor(String fieldName, Object obj, Field field, int index, Class<?> type) {
|
||||
super();
|
||||
this.obj = obj;
|
||||
this.field = field;
|
||||
this.index = index;
|
||||
this.type = type;
|
||||
this.fieldName = fieldName;
|
||||
try {
|
||||
setSelected((boolean) ReflectionTools.getValue(obj, field, index));
|
||||
} catch (IllegalArgumentException | IllegalAccessException ex) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void save() {
|
||||
try {
|
||||
ReflectionTools.setValue(obj, field, index, isSelected());
|
||||
} catch (IllegalArgumentException | IllegalAccessException ex) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addChangeListener(final ChangeListener l) {
|
||||
final GenericTagEditor t = this;
|
||||
addActionListener(new ActionListener() {
|
||||
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
l.change(t);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getChangedValue() {
|
||||
return isSelected();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFieldName() {
|
||||
return fieldName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field getField() {
|
||||
return field;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getReadOnlyValue() {
|
||||
return getChangedValue().toString();
|
||||
}
|
||||
|
||||
}
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU 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 Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui.generictageditors;
|
||||
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.lang.reflect.Field;
|
||||
import javax.swing.JCheckBox;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class BooleanEditor extends JCheckBox implements GenericTagEditor {
|
||||
|
||||
private final Object obj;
|
||||
private final Field field;
|
||||
private final int index;
|
||||
private final Class<?> type;
|
||||
private final String fieldName;
|
||||
|
||||
public BooleanEditor(String fieldName, Object obj, Field field, int index, Class<?> type) {
|
||||
super();
|
||||
this.obj = obj;
|
||||
this.field = field;
|
||||
this.index = index;
|
||||
this.type = type;
|
||||
this.fieldName = fieldName;
|
||||
try {
|
||||
setSelected((boolean) ReflectionTools.getValue(obj, field, index));
|
||||
} catch (IllegalArgumentException | IllegalAccessException ex) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void save() {
|
||||
try {
|
||||
ReflectionTools.setValue(obj, field, index, isSelected());
|
||||
} catch (IllegalArgumentException | IllegalAccessException ex) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addChangeListener(final ChangeListener l) {
|
||||
final GenericTagEditor t = this;
|
||||
addActionListener(new ActionListener() {
|
||||
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
l.change(t);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getChangedValue() {
|
||||
return isSelected();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFieldName() {
|
||||
return fieldName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field getField() {
|
||||
return field;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getReadOnlyValue() {
|
||||
return getChangedValue().toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2014-2015 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,38 +1,38 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU 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 Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui.generictageditors;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public interface GenericTagEditor {
|
||||
|
||||
public void save();
|
||||
|
||||
public void addChangeListener(ChangeListener l);
|
||||
|
||||
public Object getChangedValue();
|
||||
|
||||
public String getFieldName();
|
||||
|
||||
public Field getField();
|
||||
|
||||
public String getReadOnlyValue();
|
||||
}
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU 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 Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui.generictageditors;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public interface GenericTagEditor {
|
||||
|
||||
public void save();
|
||||
|
||||
public void addChangeListener(ChangeListener l);
|
||||
|
||||
public Object getChangedValue();
|
||||
|
||||
public String getFieldName();
|
||||
|
||||
public Field getField();
|
||||
|
||||
public String getReadOnlyValue();
|
||||
}
|
||||
|
||||
@@ -1,218 +1,218 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU 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 Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui.generictageditors;
|
||||
|
||||
import com.jpexs.decompiler.flash.types.BasicType;
|
||||
import com.jpexs.decompiler.flash.types.annotations.SWFType;
|
||||
import java.awt.Component;
|
||||
import java.awt.event.FocusAdapter;
|
||||
import java.awt.event.FocusEvent;
|
||||
import java.lang.reflect.Field;
|
||||
import javax.swing.JFormattedTextField;
|
||||
import javax.swing.JSpinner;
|
||||
import javax.swing.SpinnerModel;
|
||||
import javax.swing.SpinnerNumberModel;
|
||||
import javax.swing.text.DefaultFormatter;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class NumberEditor extends JSpinner implements GenericTagEditor {
|
||||
|
||||
private final Object obj;
|
||||
private final Field field;
|
||||
private final int index;
|
||||
private final Class<?> type;
|
||||
private final SWFType swfType;
|
||||
private String fieldName;
|
||||
|
||||
@Override
|
||||
public BaselineResizeBehavior getBaselineResizeBehavior() {
|
||||
return Component.BaselineResizeBehavior.CONSTANT_ASCENT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBaseline(int width, int height) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public NumberEditor(String fieldName, Object obj, Field field, int index, Class<?> type, SWFType swfType) {
|
||||
setSize(100, getSize().height);
|
||||
setMaximumSize(getSize());
|
||||
this.obj = obj;
|
||||
this.field = field;
|
||||
this.index = index;
|
||||
this.type = type;
|
||||
this.swfType = swfType;
|
||||
this.fieldName = fieldName;
|
||||
try {
|
||||
Object value = ReflectionTools.getValue(obj, field, index);
|
||||
setModel(getModel(swfType, value));
|
||||
JFormattedTextField jtf = ((JSpinner.NumberEditor) getEditor()).getTextField();
|
||||
DefaultFormatter formatter = (DefaultFormatter) jtf.getFormatter();
|
||||
formatter.setCommitsOnValidEdit(true);
|
||||
} catch (IllegalArgumentException | IllegalAccessException ex) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void save() {
|
||||
try {
|
||||
Object value = getChangedValue();
|
||||
if (value != null) {
|
||||
ReflectionTools.setValue(obj, field, index, value);
|
||||
}
|
||||
} catch (IllegalArgumentException | IllegalAccessException ex) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
private SpinnerModel getModel(SWFType swfType, Object value) {
|
||||
SpinnerNumberModel m = null;
|
||||
BasicType basicType = swfType == null ? BasicType.NONE : swfType.value();
|
||||
switch (basicType) {
|
||||
case UI8:
|
||||
m = new SpinnerNumberModel(toInt(value), 0, 0xff, 1);
|
||||
break;
|
||||
case UI16:
|
||||
m = new SpinnerNumberModel(toInt(value), 0, 0xffff, 1);
|
||||
break;
|
||||
case UB: {
|
||||
long max = 1;
|
||||
if (swfType.count() > 0) {
|
||||
max <<= swfType.count();
|
||||
} else {
|
||||
max <<= 31;
|
||||
}
|
||||
m = new SpinnerNumberModel((Number) toLong(value), 0L, (long) max - 1, 1L);
|
||||
}
|
||||
break;
|
||||
case UI32:
|
||||
case EncodedU32:
|
||||
case NONE:
|
||||
m = new SpinnerNumberModel((Number) toLong(value), 0L, 0xffffffffL, 1L);
|
||||
break;
|
||||
case SI8:
|
||||
m = new SpinnerNumberModel(toInt(value), -0x80, 0x7f, 1);
|
||||
break;
|
||||
case SI16:
|
||||
case FLOAT16:
|
||||
m = new SpinnerNumberModel(toInt(value), -0x8000, 0x7fff, 1);
|
||||
break;
|
||||
case FB:
|
||||
case SB: {
|
||||
long max = 1;
|
||||
if (swfType.count() > 0) {
|
||||
max <<= (swfType.count() - 1);
|
||||
} else {
|
||||
max <<= 30;
|
||||
}
|
||||
m = new SpinnerNumberModel((Number) toLong(value), (long) (-max), (long) max - 1, 1L);
|
||||
}
|
||||
break;
|
||||
case SI32:
|
||||
m = new SpinnerNumberModel(toDouble(value), -0x80000000, 0x7fffffff, 1);
|
||||
break;
|
||||
case FLOAT:
|
||||
case FIXED:
|
||||
case FIXED8:
|
||||
m = new SpinnerNumberModel(toDouble(value), -0x80000000, 0x7fffffff, 0.01);
|
||||
break;
|
||||
}
|
||||
return m;
|
||||
}
|
||||
|
||||
private double toDouble(Object value) {
|
||||
if (value instanceof Float) {
|
||||
return (double) (Float) value;
|
||||
}
|
||||
if (value instanceof Double) {
|
||||
return (double) (Double) value;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
private int toInt(Object value) {
|
||||
if (value instanceof Short) {
|
||||
return (int) (Short) value;
|
||||
}
|
||||
if (value instanceof Integer) {
|
||||
return (int) (Integer) value;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
private long toLong(Object value) {
|
||||
if (value instanceof Short) {
|
||||
return (long) (Short) value;
|
||||
}
|
||||
if (value instanceof Integer) {
|
||||
return (long) (Integer) value;
|
||||
}
|
||||
if (value instanceof Long) {
|
||||
return (long) (Long) value;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addChangeListener(final ChangeListener l) {
|
||||
final GenericTagEditor t = this;
|
||||
addFocusListener(new FocusAdapter() {
|
||||
|
||||
@Override
|
||||
public void focusLost(FocusEvent e) {
|
||||
l.change(t);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getChangedValue() {
|
||||
Object value = null;
|
||||
if (type.equals(int.class) || type.equals(Integer.class)) {
|
||||
value = Integer.parseInt(getValue().toString());
|
||||
} else if (type.equals(short.class) || type.equals(Short.class)) {
|
||||
value = Short.parseShort(getValue().toString());
|
||||
} else if (type.equals(long.class) || type.equals(Long.class)) {
|
||||
value = Long.parseLong(getValue().toString());
|
||||
} else if (type.equals(double.class) || type.equals(Double.class)) {
|
||||
value = Double.parseDouble(getValue().toString());
|
||||
} else if (type.equals(float.class) || type.equals(Float.class)) {
|
||||
value = Float.parseFloat(getValue().toString());
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFieldName() {
|
||||
return fieldName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field getField() {
|
||||
return field;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getReadOnlyValue() {
|
||||
return getChangedValue().toString();
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU 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 Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui.generictageditors;
|
||||
|
||||
import com.jpexs.decompiler.flash.types.BasicType;
|
||||
import com.jpexs.decompiler.flash.types.annotations.SWFType;
|
||||
import java.awt.Component;
|
||||
import java.awt.event.FocusAdapter;
|
||||
import java.awt.event.FocusEvent;
|
||||
import java.lang.reflect.Field;
|
||||
import javax.swing.JFormattedTextField;
|
||||
import javax.swing.JSpinner;
|
||||
import javax.swing.SpinnerModel;
|
||||
import javax.swing.SpinnerNumberModel;
|
||||
import javax.swing.text.DefaultFormatter;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class NumberEditor extends JSpinner implements GenericTagEditor {
|
||||
|
||||
private final Object obj;
|
||||
private final Field field;
|
||||
private final int index;
|
||||
private final Class<?> type;
|
||||
private final SWFType swfType;
|
||||
private String fieldName;
|
||||
|
||||
@Override
|
||||
public BaselineResizeBehavior getBaselineResizeBehavior() {
|
||||
return Component.BaselineResizeBehavior.CONSTANT_ASCENT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBaseline(int width, int height) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public NumberEditor(String fieldName, Object obj, Field field, int index, Class<?> type, SWFType swfType) {
|
||||
setSize(100, getSize().height);
|
||||
setMaximumSize(getSize());
|
||||
this.obj = obj;
|
||||
this.field = field;
|
||||
this.index = index;
|
||||
this.type = type;
|
||||
this.swfType = swfType;
|
||||
this.fieldName = fieldName;
|
||||
try {
|
||||
Object value = ReflectionTools.getValue(obj, field, index);
|
||||
setModel(getModel(swfType, value));
|
||||
JFormattedTextField jtf = ((JSpinner.NumberEditor) getEditor()).getTextField();
|
||||
DefaultFormatter formatter = (DefaultFormatter) jtf.getFormatter();
|
||||
formatter.setCommitsOnValidEdit(true);
|
||||
} catch (IllegalArgumentException | IllegalAccessException ex) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void save() {
|
||||
try {
|
||||
Object value = getChangedValue();
|
||||
if (value != null) {
|
||||
ReflectionTools.setValue(obj, field, index, value);
|
||||
}
|
||||
} catch (IllegalArgumentException | IllegalAccessException ex) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
private SpinnerModel getModel(SWFType swfType, Object value) {
|
||||
SpinnerNumberModel m = null;
|
||||
BasicType basicType = swfType == null ? BasicType.NONE : swfType.value();
|
||||
switch (basicType) {
|
||||
case UI8:
|
||||
m = new SpinnerNumberModel(toInt(value), 0, 0xff, 1);
|
||||
break;
|
||||
case UI16:
|
||||
m = new SpinnerNumberModel(toInt(value), 0, 0xffff, 1);
|
||||
break;
|
||||
case UB: {
|
||||
long max = 1;
|
||||
if (swfType.count() > 0) {
|
||||
max <<= swfType.count();
|
||||
} else {
|
||||
max <<= 31;
|
||||
}
|
||||
m = new SpinnerNumberModel((Number) toLong(value), 0L, (long) max - 1, 1L);
|
||||
}
|
||||
break;
|
||||
case UI32:
|
||||
case EncodedU32:
|
||||
case NONE:
|
||||
m = new SpinnerNumberModel((Number) toLong(value), 0L, 0xffffffffL, 1L);
|
||||
break;
|
||||
case SI8:
|
||||
m = new SpinnerNumberModel(toInt(value), -0x80, 0x7f, 1);
|
||||
break;
|
||||
case SI16:
|
||||
case FLOAT16:
|
||||
m = new SpinnerNumberModel(toInt(value), -0x8000, 0x7fff, 1);
|
||||
break;
|
||||
case FB:
|
||||
case SB: {
|
||||
long max = 1;
|
||||
if (swfType.count() > 0) {
|
||||
max <<= (swfType.count() - 1);
|
||||
} else {
|
||||
max <<= 30;
|
||||
}
|
||||
m = new SpinnerNumberModel((Number) toLong(value), (long) (-max), (long) max - 1, 1L);
|
||||
}
|
||||
break;
|
||||
case SI32:
|
||||
m = new SpinnerNumberModel(toDouble(value), -0x80000000, 0x7fffffff, 1);
|
||||
break;
|
||||
case FLOAT:
|
||||
case FIXED:
|
||||
case FIXED8:
|
||||
m = new SpinnerNumberModel(toDouble(value), -0x80000000, 0x7fffffff, 0.01);
|
||||
break;
|
||||
}
|
||||
return m;
|
||||
}
|
||||
|
||||
private double toDouble(Object value) {
|
||||
if (value instanceof Float) {
|
||||
return (double) (Float) value;
|
||||
}
|
||||
if (value instanceof Double) {
|
||||
return (double) (Double) value;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
private int toInt(Object value) {
|
||||
if (value instanceof Short) {
|
||||
return (int) (Short) value;
|
||||
}
|
||||
if (value instanceof Integer) {
|
||||
return (int) (Integer) value;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
private long toLong(Object value) {
|
||||
if (value instanceof Short) {
|
||||
return (long) (Short) value;
|
||||
}
|
||||
if (value instanceof Integer) {
|
||||
return (long) (Integer) value;
|
||||
}
|
||||
if (value instanceof Long) {
|
||||
return (long) (Long) value;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addChangeListener(final ChangeListener l) {
|
||||
final GenericTagEditor t = this;
|
||||
addFocusListener(new FocusAdapter() {
|
||||
|
||||
@Override
|
||||
public void focusLost(FocusEvent e) {
|
||||
l.change(t);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getChangedValue() {
|
||||
Object value = null;
|
||||
if (type.equals(int.class) || type.equals(Integer.class)) {
|
||||
value = Integer.parseInt(getValue().toString());
|
||||
} else if (type.equals(short.class) || type.equals(Short.class)) {
|
||||
value = Short.parseShort(getValue().toString());
|
||||
} else if (type.equals(long.class) || type.equals(Long.class)) {
|
||||
value = Long.parseLong(getValue().toString());
|
||||
} else if (type.equals(double.class) || type.equals(Double.class)) {
|
||||
value = Double.parseDouble(getValue().toString());
|
||||
} else if (type.equals(float.class) || type.equals(Float.class)) {
|
||||
value = Float.parseFloat(getValue().toString());
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFieldName() {
|
||||
return fieldName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field getField() {
|
||||
return field;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getReadOnlyValue() {
|
||||
return getChangedValue().toString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,124 +1,124 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU 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 Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui.generictageditors;
|
||||
|
||||
import com.jpexs.helpers.Helper;
|
||||
import java.awt.Component;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.event.FocusAdapter;
|
||||
import java.awt.event.FocusEvent;
|
||||
import java.lang.reflect.Field;
|
||||
import javax.swing.JTextArea;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class StringEditor extends JTextArea implements GenericTagEditor {
|
||||
|
||||
private final Object obj;
|
||||
private final Field field;
|
||||
private final int index;
|
||||
private final Class<?> type;
|
||||
private String fieldName;
|
||||
private boolean multiline;
|
||||
|
||||
@Override
|
||||
public boolean getScrollableTracksViewportWidth() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Dimension getPreferredSize() {
|
||||
Dimension ret = super.getPreferredSize();
|
||||
ret.width = 300;
|
||||
return ret;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BaselineResizeBehavior getBaselineResizeBehavior() {
|
||||
return Component.BaselineResizeBehavior.CONSTANT_ASCENT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBaseline(int width, int height) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public StringEditor(String fieldName, Object obj, Field field, int index, Class<?> type, boolean multiline) {
|
||||
setLineWrap(true);
|
||||
this.obj = obj;
|
||||
this.field = field;
|
||||
this.index = index;
|
||||
this.type = type;
|
||||
this.fieldName = fieldName;
|
||||
this.multiline = multiline;
|
||||
if (multiline) {
|
||||
Dimension d = new Dimension(500, 200);
|
||||
setPreferredSize(d);
|
||||
setSize(d);
|
||||
}
|
||||
try {
|
||||
setText((String) ReflectionTools.getValue(obj, field, index));
|
||||
} catch (IllegalArgumentException | IllegalAccessException ex) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void save() {
|
||||
try {
|
||||
ReflectionTools.setValue(obj, field, index, getText());
|
||||
} catch (IllegalArgumentException | IllegalAccessException ex) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addChangeListener(final ChangeListener l) {
|
||||
final GenericTagEditor t = this;
|
||||
addFocusListener(new FocusAdapter() {
|
||||
|
||||
@Override
|
||||
public void focusLost(FocusEvent e) {
|
||||
l.change(t);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getChangedValue() {
|
||||
return getText();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFieldName() {
|
||||
return fieldName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field getField() {
|
||||
return field;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getReadOnlyValue() {
|
||||
return Helper.escapeHTML(getChangedValue().toString());
|
||||
}
|
||||
|
||||
}
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU 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 Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui.generictageditors;
|
||||
|
||||
import com.jpexs.helpers.Helper;
|
||||
import java.awt.Component;
|
||||
import java.awt.Dimension;
|
||||
import java.awt.event.FocusAdapter;
|
||||
import java.awt.event.FocusEvent;
|
||||
import java.lang.reflect.Field;
|
||||
import javax.swing.JTextArea;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class StringEditor extends JTextArea implements GenericTagEditor {
|
||||
|
||||
private final Object obj;
|
||||
private final Field field;
|
||||
private final int index;
|
||||
private final Class<?> type;
|
||||
private String fieldName;
|
||||
private boolean multiline;
|
||||
|
||||
@Override
|
||||
public boolean getScrollableTracksViewportWidth() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Dimension getPreferredSize() {
|
||||
Dimension ret = super.getPreferredSize();
|
||||
ret.width = 300;
|
||||
return ret;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BaselineResizeBehavior getBaselineResizeBehavior() {
|
||||
return Component.BaselineResizeBehavior.CONSTANT_ASCENT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBaseline(int width, int height) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public StringEditor(String fieldName, Object obj, Field field, int index, Class<?> type, boolean multiline) {
|
||||
setLineWrap(true);
|
||||
this.obj = obj;
|
||||
this.field = field;
|
||||
this.index = index;
|
||||
this.type = type;
|
||||
this.fieldName = fieldName;
|
||||
this.multiline = multiline;
|
||||
if (multiline) {
|
||||
Dimension d = new Dimension(500, 200);
|
||||
setPreferredSize(d);
|
||||
setSize(d);
|
||||
}
|
||||
try {
|
||||
setText((String) ReflectionTools.getValue(obj, field, index));
|
||||
} catch (IllegalArgumentException | IllegalAccessException ex) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void save() {
|
||||
try {
|
||||
ReflectionTools.setValue(obj, field, index, getText());
|
||||
} catch (IllegalArgumentException | IllegalAccessException ex) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addChangeListener(final ChangeListener l) {
|
||||
final GenericTagEditor t = this;
|
||||
addFocusListener(new FocusAdapter() {
|
||||
|
||||
@Override
|
||||
public void focusLost(FocusEvent e) {
|
||||
l.change(t);
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getChangedValue() {
|
||||
return getText();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getFieldName() {
|
||||
return fieldName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Field getField() {
|
||||
return field;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getReadOnlyValue() {
|
||||
return Helper.escapeHTML(getChangedValue().toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2014 JPEXS
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU 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 Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
version = versi\u00f3n
|
||||
by = por
|
||||
button.ok = OK
|
||||
dialog.title = Acerca de
|
||||
contributors = Colaboradores:
|
||||
#In the translation, replace "english" with target language name
|
||||
translation.author.label = Autor de la traducci\u00f3n al espa\u00f1ol:
|
||||
#In the translation, insert your name here
|
||||
translation.author = poxyran
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU 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 Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
version = versi\u00f3n
|
||||
by = por
|
||||
button.ok = OK
|
||||
dialog.title = Acerca de
|
||||
contributors = Colaboradores:
|
||||
#In the translation, replace "english" with target language name
|
||||
translation.author.label = Autor de la traducci\u00f3n al espa\u00f1ol:
|
||||
#In the translation, insert your name here
|
||||
translation.author = poxyran
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU 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 Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
version = version
|
||||
by = por
|
||||
button.ok = OK
|
||||
dialog.title = Acerca de
|
||||
contributors = Colaboradores:
|
||||
#In the translation, replace "english" with target language name
|
||||
translation.author.label = Autor da tradu\u00e7\u00e3o em Portugu\u00eas:
|
||||
#In the translation, insert your name here
|
||||
translation.author = MaGiC
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU 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 Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
version = version
|
||||
by = por
|
||||
button.ok = OK
|
||||
dialog.title = Acerca de
|
||||
contributors = Colaboradores:
|
||||
#In the translation, replace "english" with target language name
|
||||
translation.author.label = Autor da tradu\u00e7\u00e3o em Portugu\u00eas:
|
||||
#In the translation, insert your name here
|
||||
translation.author = MaGiC
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU 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 Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
version = versão
|
||||
by = por
|
||||
button.ok = OK
|
||||
dialog.title = Acerca de
|
||||
contributors = Colaboradores:
|
||||
#In the translation, replace "english" with target language name
|
||||
translation.author.label = Autor da tradu\u00e7\u00e3o em Portugu\u00eas Brasil:
|
||||
#In the translation, insert your name here
|
||||
translation.author = realmaster42
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU 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 Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
version = vers\u00c3\u00a3o
|
||||
by = por
|
||||
button.ok = OK
|
||||
dialog.title = Acerca de
|
||||
contributors = Colaboradores:
|
||||
#In the translation, replace "english" with target language name
|
||||
translation.author.label = Autor da tradu\u00e7\u00e3o em Portugu\u00eas Brasil:
|
||||
#In the translation, insert your name here
|
||||
translation.author = realmaster42
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU 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 Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
version = version
|
||||
by = av
|
||||
button.ok = Okej
|
||||
dialog.title = Om
|
||||
contributors = Bidragande:
|
||||
#In the translation, replace "english" with target language name
|
||||
translation.author.label = Skapare utav Svensk \u00f6vers\u00e4ttning:
|
||||
#In the translation, insert your name here
|
||||
translation.author = Capasha
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU 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 Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
version = version
|
||||
by = av
|
||||
button.ok = Okej
|
||||
dialog.title = Om
|
||||
contributors = Bidragande:
|
||||
#In the translation, replace "english" with target language name
|
||||
translation.author.label = Skapare utav Svensk \u00f6vers\u00e4ttning:
|
||||
#In the translation, insert your name here
|
||||
translation.author = Capasha
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU 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 Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
version = \u0432\u0435\u0440\u0441\u0456\u044f
|
||||
by = \u0430\u0432\u0442\u043e\u0440:
|
||||
button.ok = \u0413\u0430\u0440\u0430\u0437\u0434
|
||||
dialog.title = \u041f\u0440\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443
|
||||
contributors = \u041f\u043e\u0434\u044f\u043a\u0438:
|
||||
#In the translation, replace "english" with target language name
|
||||
translation.author.label = \u0410\u0432\u0442\u043e\u0440 \u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u0430\u0434\u0443:
|
||||
#In the translation, insert your name here
|
||||
translation.author = pepka
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU 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 Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
version = \u0432\u0435\u0440\u0441\u0456\u044f
|
||||
by = \u0430\u0432\u0442\u043e\u0440:
|
||||
button.ok = \u0413\u0430\u0440\u0430\u0437\u0434
|
||||
dialog.title = \u041f\u0440\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443
|
||||
contributors = \u041f\u043e\u0434\u044f\u043a\u0438:
|
||||
#In the translation, replace "english" with target language name
|
||||
translation.author.label = \u0410\u0432\u0442\u043e\u0440 \u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u0430\u0434\u0443:
|
||||
#In the translation, insert your name here
|
||||
translation.author = pepka
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,68 +1,68 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU 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 Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
shapes = Formes
|
||||
shapes.svg = SVG
|
||||
shapes.png = PNG
|
||||
shapes.canvas = HTML5 Canvas
|
||||
|
||||
texts = Textes
|
||||
texts.plain = Texte brut
|
||||
texts.formatted = Texte format\u00e9
|
||||
texts.svg = SVG
|
||||
|
||||
images = Images
|
||||
images.png_jpeg = PNG/JPEG
|
||||
images.png = PNG
|
||||
images.jpeg = JPEG
|
||||
|
||||
movies = Vid\u00e9os
|
||||
movies.flv = FLV (Aucun son)
|
||||
|
||||
sounds = Sons
|
||||
sounds.mp3_wav_flv = MP3/WAV/FLV
|
||||
sounds.flv = FLV (Audio seulement)
|
||||
sounds.mp3_wav = MP3/WAV
|
||||
sounds.wav = WAV
|
||||
|
||||
scripts = Scripts
|
||||
scripts.as = ActionScript
|
||||
scripts.pcode = Assembleur
|
||||
scripts.pcode_hex = Assembleur hexad\u00e9cimal
|
||||
scripts.hex = Hexad\u00e9cimal
|
||||
|
||||
binaryData = Donn\u00e8es binaires
|
||||
binaryData.raw = Raw
|
||||
|
||||
dialog.title = Exportation...
|
||||
|
||||
button.ok = OK
|
||||
button.cancel = Annuler
|
||||
|
||||
morphshapes = Images anim\u00e8es
|
||||
morphshapes.gif = GIF
|
||||
morphshapes.svg = SVG
|
||||
morphshapes.canvas = Toile HTML5
|
||||
|
||||
frames = Image
|
||||
frames.png = PNG
|
||||
frames.gif = GIF
|
||||
frames.avi = AVI
|
||||
frames.svg = SVG
|
||||
frames.canvas = Toile HTML5
|
||||
frames.pdf = PDF
|
||||
|
||||
fonts = Polices de caract\u00e9res
|
||||
fonts.ttf = TTF
|
||||
fonts.woff = WOFF
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU 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 Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
shapes = Formes
|
||||
shapes.svg = SVG
|
||||
shapes.png = PNG
|
||||
shapes.canvas = HTML5 Canvas
|
||||
|
||||
texts = Textes
|
||||
texts.plain = Texte brut
|
||||
texts.formatted = Texte format\u00e9
|
||||
texts.svg = SVG
|
||||
|
||||
images = Images
|
||||
images.png_jpeg = PNG/JPEG
|
||||
images.png = PNG
|
||||
images.jpeg = JPEG
|
||||
|
||||
movies = Vid\u00e9os
|
||||
movies.flv = FLV (Aucun son)
|
||||
|
||||
sounds = Sons
|
||||
sounds.mp3_wav_flv = MP3/WAV/FLV
|
||||
sounds.flv = FLV (Audio seulement)
|
||||
sounds.mp3_wav = MP3/WAV
|
||||
sounds.wav = WAV
|
||||
|
||||
scripts = Scripts
|
||||
scripts.as = ActionScript
|
||||
scripts.pcode = Assembleur
|
||||
scripts.pcode_hex = Assembleur hexad\u00e9cimal
|
||||
scripts.hex = Hexad\u00e9cimal
|
||||
|
||||
binaryData = Donn\u00e8es binaires
|
||||
binaryData.raw = Raw
|
||||
|
||||
dialog.title = Exportation...
|
||||
|
||||
button.ok = OK
|
||||
button.cancel = Annuler
|
||||
|
||||
morphshapes = Images anim\u00e8es
|
||||
morphshapes.gif = GIF
|
||||
morphshapes.svg = SVG
|
||||
morphshapes.canvas = Toile HTML5
|
||||
|
||||
frames = Image
|
||||
frames.png = PNG
|
||||
frames.gif = GIF
|
||||
frames.avi = AVI
|
||||
frames.svg = SVG
|
||||
frames.canvas = Toile HTML5
|
||||
frames.pdf = PDF
|
||||
|
||||
fonts = Polices de caract\u00e9res
|
||||
fonts.ttf = TTF
|
||||
fonts.woff = WOFF
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,41 +1,41 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU 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 Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
shapes = Former
|
||||
shapes.svg = SVG
|
||||
|
||||
texts = Texter
|
||||
texts.plain = Oformaterad text
|
||||
texts.formatted = Formaterad text
|
||||
|
||||
images = Bilder
|
||||
images.png_jpeg = PNG/JPEG
|
||||
|
||||
movies = Filmer
|
||||
movies.flv = FLV (Inget Ljud)
|
||||
|
||||
sounds = Ljud
|
||||
sounds.mp3_wav_flv = MP3/WAV/FLV
|
||||
sounds.flv = FLV (Bara ljud)
|
||||
|
||||
scripts = Scripts
|
||||
scripts.as = AS
|
||||
scripts.pcode = P-code
|
||||
scripts.pcode_hex = P-code med Hex
|
||||
scripts.hex = Hex
|
||||
|
||||
dialog.title = Exportera...
|
||||
|
||||
button.ok = Godk\u00e4nn
|
||||
button.cancel = Avbryt
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU 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 Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
shapes = Former
|
||||
shapes.svg = SVG
|
||||
|
||||
texts = Texter
|
||||
texts.plain = Oformaterad text
|
||||
texts.formatted = Formaterad text
|
||||
|
||||
images = Bilder
|
||||
images.png_jpeg = PNG/JPEG
|
||||
|
||||
movies = Filmer
|
||||
movies.flv = FLV (Inget Ljud)
|
||||
|
||||
sounds = Ljud
|
||||
sounds.mp3_wav_flv = MP3/WAV/FLV
|
||||
sounds.flv = FLV (Bara ljud)
|
||||
|
||||
scripts = Scripts
|
||||
scripts.as = AS
|
||||
scripts.pcode = P-code
|
||||
scripts.pcode_hex = P-code med Hex
|
||||
scripts.hex = Hex
|
||||
|
||||
dialog.title = Exportera...
|
||||
|
||||
button.ok = Godk\u00e4nn
|
||||
button.cancel = Avbryt
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2010-2014 JPEXS
|
||||
# Copyright (C) 2010-2015 JPEXS
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -13,6 +13,6 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
range.description = %name% (%available% de %total% cháracteras)
|
||||
range.description = %name% (%available% de %total% ch\u00c3\u00a1racteras)
|
||||
dialog.title = 'Embedding' de Fontes
|
||||
label.individual = Texto individual:
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user