fr.ird.observe.client.form.open.OpenDataFormUI.jcss Maven / Gradle / Ivy
/*
* #%L
* ObServe :: Client
* %%
* Copyright (C) 2008 - 2017 IRD, Code Lutin, Ultreia.io
* %%
* 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
* .
* #L%
*/
#openActions {
visible:{model.isCanWrite()};
}
#editActions {
visible:{!model.isReadingMode()};
}
#reset {
visible:{!model.isReadingMode()};
enabled:{model.isCreatingMode() ? true : model.isModified()};
horizontalTextPosition:{JButton.RIGHT};
}
#save {
enabled:{model.isModified() && model.isValid()};
}
#delete {
visible:{model.isUpdatingMode()};
}
#openData {
visible:{model.isReadingMode() && model.isCanReopen()};
enabled:{model.isReadingMode() && model.isCanReopen()};
}
#closeData {
visible:{model.isUpdatingMode()};
enabled:{model.isUpdatingMode()};
}
#create {
visible:{model.isUpdatingMode()};
enabled:{model.isUpdatingMode()};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy