Package com.utils.model

Examples of com.utils.model.ModelReadOnly


     * Método que inicializa a tela.
     */
    private void initTabelaCapa() {

        // Definindo as colunas...
        ModelReadOnly tm = new ModelReadOnly();
        tm.addColumn("");
        tm.addColumn("");


        jTable.setModel(tm);

        // Definindo a largura das colunas...
View Full Code Here


    public void lookAndFeelChanged() {
        jTableFila.setDefaultRenderer(Object.class, new TableRendererFila());
    }

    private void initTabelaFila() {
        modelFila = new ModelReadOnly();
        modelFila.addColumn("");
        modelFila.addTableModelListener(this);
        jTableFila.setDefaultRenderer(Object.class, new TableRendererFila());
        jTableFila.setRowHeight(50);
        jTableFila.getTableHeader().setVisible(false);
View Full Code Here

     * Método que inicializa a tela.
     */
    private void initTabelaLista() {

        // Definindo as colunas...
        ModelReadOnly tm = new ModelReadOnly();
        tm.addColumn("Nome");
        tm.addColumn("Tipo");
        tm.addColumn("Músicas");
        tm.addColumn("Obj");

        jTable.setModel(tm);

        // Definindo a largura das colunas...
        jTable.getColumn("Nome").setPreferredWidth(250);
View Full Code Here

     */
    private void atualizarTabelaLista() {

        try {
            // Filtro...
            ModelReadOnly ts = (ModelReadOnly) jTable.getModel();
            ts.setRowCount(0);
            ArrayList<PlaylistI> lista = PortaCDs.listarPlayLists(jTextField_Nome.getText());
            for (int i = 0; i < lista.size(); i++) {
                PlaylistI m = lista.get(i);
                Object[] row = new Object[ts.getColumnCount()];
                row[0] = m.getNome();
                row[1] = m.getTipoPlayList();
                row[2] = m instanceof PlaylistS ? m.getNroMusicas() : "<auto>";
                row[3] = m;

                ts.addRow(row);
            }
            jTable.requestFocus();
            if (jTable.getRowCount() > 0) {
                jTable.changeSelection(0, 0, false, false);
            }
View Full Code Here

     * Método que inicializa a tela.
     */
    private void initTabelaLista() {

        // Definindo as colunas...
        ModelReadOnly tm = new ModelReadOnly();
        tm.addColumn("Genero");
        tm.addColumn("Nome");
        tm.addColumn("Autor");
        tm.addColumn("Album");
        tm.addColumn("Obj");

        jTable.setModel(tm);

        // Definindo a largura das colunas...
        jTable.getColumn("Genero").setPreferredWidth(50);
View Full Code Here

            jFileChooser.setDialogTitle("Abrir Pasta");

            jCheckBox_DownloadCapa.setSelected(MusicaGerencia.downLoadCapas);
            jCheckBox_Organizador.setSelected(MusicaGerencia.organizarPastas);
            jTextField_DestinoOrg.setText(MusicaGerencia.destino);
            ModelReadOnly tm = new ModelReadOnly();
            tm.addColumn("Pastas em que o Crepz procurará por músicas");
            jTable_pastas.setModel(tm);
            tm.setRowCount(0);
            ArrayList<String> pastas = Configuracoes.PASTAS_SCANER.getValor();
            for (short i = 0; i < pastas.size(); i++) {
                if (pastas.get(i) != null && !pastas.get(i).replace(" ", "").isEmpty()) {
                    tm.addRow(new Object[]{pastas.get(i)});

                }
            }
            jComboBoxAcaoFila.setModel(new DefaultComboBoxModel(AcaoPadraoFila.getNomesFakes()));
            jComboBoxAcaoFila.setSelectedIndex(Configuracoes.ACAO_PADRAO_FILA.getValor().ordinal());
View Full Code Here

TOP

Related Classes of com.utils.model.ModelReadOnly

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